# How can I pass simulationClass as a parmeter in gatling

**URL:** <https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562>\
**Category:** Gatling (Open-Source)\
**Created:** [January 24, 2023, 3:50pm UTC](https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562 "2023-01-24T15:50:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imane](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@Imane](https://community.gatling.io/u/Imane)\
**Post date:** [January 24, 2023, 3:50pm UTC](https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562/1 "2023-01-24T15:50:35Z")

</div>

please I have several simulation Classes and I want to give the users possibility to enter the name of simulation he / she wants to run from a jenkins pipline For that I want to parametrize the simulation name so insted that user write the command : mvn gatling -Dgatling.simulationClass=package.theNameofSimulation ( here the name is static) , I want him directy enter the name of simulation he choose  
 ![ua](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/2/29b51bad7495ab5c9c347e519c4432c38cd21448.png)  
because I guess that the user doesn’t know the code and commands

so we have the possibility to passing in parameter the numberOfVirtuelUsers I want to do the same thing for simulation

Thanks you

---

<div class="post-metadata">

**Author:** ![Imane](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@Imane](https://community.gatling.io/u/Imane)\
**Post date:** [January 27, 2023, 9:45am UTC](https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562/2 "2023-01-27T09:45:05Z")

</div>

Hello, I still waiting for your help please. Thanks

---

<div class="post-metadata">

**Author:** ![shoaib42](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/shoaib42/32/844_2.png) [@shoaib42](https://community.gatling.io/u/shoaib42)\
**Post date:** [January 30, 2023, 6:19am UTC](https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562/3 "2023-01-30T06:19:01Z")

</div>

This looks like more of a design issue of your automation setup. Not sure if this is the right place to ask such a question.

Hint, pre-populate the list of simulation classes and then the user picks the sim from list. (Its nothing to do with gatling ☹ )

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [March 1, 2023, 6:19am UTC](https://community.gatling.io/t/how-can-i-pass-simulationclass-as-a-parmeter-in-gatling/7562/4 "2023-03-01T06:19:20Z")

</div>

Closed on March 1, 2023, 6:19am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
