# Running multiple Simulation classes from command line

**URL:** <https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076>\
**Category:** Gatling (Open-Source)\
**Created:** [June 4, 2014, 8:09pm UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076 "2014-06-04T20:09:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrav](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shrav](https://community.gatling.io/u/shrav)\
**Post date:** [June 4, 2014, 8:09pm UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/1 "2014-06-04T20:09:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [June 4, 2014, 8:17pm UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/2 "2014-06-04T20:17:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shrav](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shrav](https://community.gatling.io/u/shrav)\
**Post date:** [June 4, 2014, 8:23pm UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/3 "2014-06-04T20:23:07Z")

</div>

Thanks Stephane. I actually meant from maven! 🙂

---

<div class="post-metadata">

**Author:** ![shrav](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shrav](https://community.gatling.io/u/shrav)\
**Post date:** [June 5, 2014, 12:33am UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/4 "2014-06-05T00:33:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [June 5, 2014, 6:14am UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/5 "2014-06-05T06:14:16Z")

</div>

Did you read the documentation? [https://github.com/excilys/gatling/wiki/Advanced-Usage#modularization](https://github.com/excilys/gatling/wiki/Advanced-Usage#modularization)

---

<div class="post-metadata">

**Author:** ![Ori\_Cohen1](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Ori\_Cohen1](https://community.gatling.io/u/Ori_Cohen1)\
**Post date:** [August 4, 2015, 10:40am UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/6 "2015-08-04T10:40:29Z")

</div>

Is this issue resolution no longer relevant??  
[https://github.com/gatling/gatling/issues/363](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

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 5, 2015, 8:01am UTC](https://community.gatling.io/t/running-multiple-simulation-classes-from-command-line/1076/7 "2015-08-05T08:01:23Z")

</div>

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.
