Running multiple Simulation classes from command line

7,599 views
Skip to first unread message

shrav

unread,
Jun 4, 2014, 4:09:19 PM6/4/14
to gat...@googlegroups.com
Is it possible to run more than one simulation class from maven as I would like to modularise my tests into different Simulation class. I m using Gatling 2.
Thanks

Stéphane Landelle

unread,
Jun 4, 2014, 4:17:25 PM6/4/14
to gat...@googlegroups.com
The title of your mail says "from command line" while the content says "from maven"?!

Anyway, you can move your scenario definitions into other classes or objects, Simulation is just the normalized entry point. Gatling won't let you run several of them, neither at the same time, nor sequentially. You have to launch Gatling multiple times, be it launching multiple times from the command line or run multiple executions of the maven plugin.


2014-06-04 22:09 GMT+02:00 shrav <shrav...@gmail.com>:
Is it possible to run more than one simulation class from maven as I would like to modularise my tests into different Simulation class. I m using Gatling 2.
Thanks

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shrav

unread,
Jun 4, 2014, 4:23:07 PM6/4/14
to gat...@googlegroups.com
Thanks Stephane. I actually meant from maven! :)

shrav

unread,
Jun 4, 2014, 8:33:57 PM6/4/14
to gat...@googlegroups.com
Could you please provide an example on how to create scenario definitions in a separate class and use it in the Simulation class? I am new to Scala and not sure how this is done.
Thanks again

Stéphane Landelle

unread,
Jun 5, 2014, 2:14:18 AM6/5/14
to gat...@googlegroups.com

Ori Cohen

unread,
Aug 4, 2015, 6:40:29 AM8/4/15
to Gatling User Group
Is this issue resolution no longer relevant??
https://github.com/gatling/gatling/issues/363

From the communication there it seems that there is an option to run multiple concurrent simulations from a single Gatling instance.
I specifically need it to be able to use several assertion patters for different simulations running at the same time, and assertions are only available through the Simulation.SetUp API.

TIA
Ori

slan...@gatling.io

unread,
Aug 5, 2015, 4:01:41 AM8/5/15
to gat...@googlegroups.com
No, running concurrent simulations will never be supported, as they would compete for resources (CPU, IO) and worsen stats.
You can run concurrent scenarios, but indeed, assertions can only target overall stats. It would require quite an effort to support scenario level assertions.


This message may contain confidential and/or privileged information. 
If you are not the addressee or authorized to receive this on behalf of the addressee you must not use, copy, disclose or take action based on this message or any information herein. 
If you have received this message in error, please advise the sender immediately by reply email and delete this message. Thank you.
Reply all
Reply to author
Forward
0 new messages