Gatling Beginner Tutorial 10 | How to setup Maven project and run from Command Line |

preview_player
Показать описание
Notes:
00:00 Introduction
00:42 Open command line and cd to a new folder
02:38 Check Prerequisites
04:13 Maven Project Setup
06:57 Open project in IDE
11:10 Mark folders for test and resources
12:02 Add Scala plugin on IntelliJ IDEA
12:28 Add Scala in project libraries
13:31 Create Simulation Script
19:13 Run Commands
21:57 Run specific simulation from command line
24:16 Run multliple Simulations from command line

Step 1 - Open command line and cd to a new folder

02:38
Step 2 - Check Prerequisites
java -version
mvn -version
scala -version

04:13
Step 3 - Maven Project Setup
mvn archetype:generate
choose a number or apply filter gatling
choose archetype number
select version
provide groupid, artifactid
(artifact Id : project name)

06:57
Step 4 - Open Project in IDE
Check following maven dependencies
Gatling-charts-highcharts
Gatling-maven-plugin

11:10
Step 5 - In case the scala and resources folder not already marked
Rt click on scala folder > Mark Directory as > Test Sources root
Rt click on resources folder > Mark Directory as > Test Resources root

12:02
Step 6 - Check scala plugin is added in the IDE (File - Settings - Plugins)

12:28
Step 7 - Add scala in Project Libraries (File - Project Structure - Global Libraries - Scala)

13:31
Step 8 - Rt click on scala folder - New - Package (can give same package name as groupid)

16:29
Step 9 - Create a scala class BasicSimulation (can copy code from any basic simulation script)

19:13
Step 10 - Open command line and goto the location of project folder

19:36
Step 11 - Try these commands

mvn clean gatling:help
mvn clean gatling:verify
mvn clean gatling:recorder
mvn clean gatling:test

#GatlingBeginnerTutorials
_____________________________________________________________

Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you

You can support my mission for education by sharing this knowledge and helping as many people as you can

If my work has helped you, consider helping any animal near you, in any way you can.

Never Stop Learning
Raghav
Рекомендации по теме
Комментарии
Автор

Thank you so much for all your efforts, this Gatling Video Series helped me a lot.

mohammadyazdani-kl
Автор

I came here to thank you for making the appium playlist… it’s has help me a lot ….😅i know it’s not connected to this but thank you some much

smartbusinessltd
Автор

Hi Raghav
Can you please suggest me how can I write a Gatling Scala class to execute a karate runner class instead of the karate.feature file?

kbanshi
Автор

Hello sir,
How to run multiple simulations which have multiple parameters whose values we have to pass before running them from terminal?

pallavipatil
Автор

Hello Sir,
Thank you for sharing this, this is very useful..

I have one question:
Is any way to run parallel multiple Simulations instead of sequentially.

hiteshbansal
Автор

Hello, Raghav please can you prepare POM for playWright automation, you made me very familiar on selenium and Cucumber, but now I wish to know like your videos thanks

melesegenanew
Автор

Can you provide me the code to perform login operation into a url using gatling

jayasuryaboodaraju
Автор

Hi sir !
1) Could you please do a video on future of automation testing and software testing so many Developers and testers are coverting to Data science in recent times
2) is there any chance that sofware testing will be replaced with some other technologies in the future
3)Could you please differentiate wt will be the future and salary growth in Software testing vs data science which has more growth
4)As a software tester i would like to be work in testing field and i would also like to know is data science better than sofware testing( it it is then i will switch my carreer to data science ) reply sir your answer is much needed for me !

John-qd
Автор

Hi Raghav, Thank you for all the videos . I am getting below error when I run mvn gatling:recorder . the same issue happening for mvn gatling:test as well . Could you please provide your suggestion. I googled it but didn't find proper solution. Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[INFO]
[INFO] BUILD FAILURE

Here are my java, scala and mvn versions
GatlingDemoProject2 % scala -version
Scala code runner version 3.2.2 -- Copyright 2002-2023, LAMP/EPFL
GatlingDemoProject2 % mvn -version
Apache Maven 3.9.0
Maven home:
Java version: 19.0.2, vendor: Homebrew, runtime:

rameshallamsetti