scenario sequence question

Hi,

Thanks for Gatling, btw, it’s an awesome tool.

Anyway, I have a quick question about scenarios and how they are executed.

Let’s say I want to test a server with 2000 users and I have two chains that both execute one get request:

val userSignUpChain = …
val userSendsEmailChain = …

And two two scenarios:

val userSignUpScn = scenario("…").exec(userSignUpChain)
val userSendsEmailScn = scenario("…").exec(userSendsEmailChain)

And a setup like this:

setUp(
userSignUpScn.users(2000).protocolConfig(httpConf),

userSendsEmailScn.users(2000)…protocolConfig(httpConf)

)

Do these scenarios run concurrently or sequentially?
That is, if the script is configured this way (assuming no delays and both chains take the exact same time to finish), at max load my server will be processing 4000 requests?
Or will it run the userSignUpScn first, and then run the userSendsEmailScn second, with a max load of 2000 user?

Thanks!

Hi,

Concurrently.

Cheers,

Stéphane

The question you need to ask is: 4000 requests per what, though.

Also, beware, opening 4000 tcp connections at the same time might take a while.
BTW, the reports and your server access logs will give you answers to your questions.

Stefan