run multiple sceario scripts at the same time

SO I need to create several different scenarios, but I did not want to have them all in one script. Is there a way to run all the scenarios at same time ? or have a scenario file that calls other scenarios ?

Easiest way is to call different scenarios with different users like this

val users = scenario("Scn 1 - 2").exec(Scneraio1.doSomething,Scneraio2.doSomething) val users2 = scenario("Scn 3 -4").exec(Scneraio3.doSomething, Scneraio4.doSomething)

and inject users like this

setUp( users.inject(rampUsers(2) over (10 seconds)), users2.inject(rampUsers(2) over (10 seconds)) ).protocols(httpConf)

It’s all in the docs http://gatling.io/docs/2.1.6/advanced_tutorial.html#step-02-configure-virtual-users

You can do put all scenarios into a List and setup the simulation as a group and run it.

setUp(list:_*).protocols(httpConf)

This will allow one simulation class to run all your scenarios within the list.

Kenny,

Will that run simulations simultaneously or sequentially?

Thanks,
Abhi

Hi Abhi,

I believe its works the same as this, i think it runs sequentially based on logs.

setUp(
users.inject(rampUsers(2) over (10 seconds)),
users2.inject(rampUsers(2) over (10 seconds))
).protocols(httpConf)

When you run several scenarios in a simulation, they are executed simultaneously.

Cheers,

Pierre

Thanks Pierre for the confirmation.

thanks this helped