Parallel execution of multiple scenarios

You can also try with below code .

scenario1.inject(rampConcurrentUsers(0) to (6) during(10),constantConcurrentUsers(6) during(60 seconds)),

scenario2.inject(rampConcurrentUsers(0) to (4) during(10),constantConcurrentUsers(4) during(60 seconds))

Whatever you are doing is absolutely fine.

The way you are running the setup you will see that the requests are running in parallel.


Gatling will run each item within SetUp in parallel where as each item defined in a scenario will be run sequentially. As you can see from the link

The definition of the injection profile of users is done with the inject method. This method takes as argument a sequence of injection steps that will be processed sequentially.

So your above code will run scenario01 ramp to 30 over x seconds and scenario02 ramp to 70 over y seconds in parallel.

Tags:

Gatling