Gatling version: 3.11.2 (must be up to date)
Gatling flavor: java kotlin scala
Gatling build tool: maven gradle sbt bundle
I read the guidelines and how to ask a question topics.
I provided a SSCCE (or at least, all information to help the community understand my topic)
I copied output I observe, and explain what I think should be.
Lets say I have defined a Simulation, A, that consist of a single scenario with an injection profile that I believe simulates a Peak test.
I now want to create Simulation B, that consists of the same scenario, but I want to change the injection profile to simulate a Spike test.
Is it better to create a second simulation file that has the same scenario, but changes the injection profile, or is it recommended to use conditional logic + cmd line arguments to change the injection profile for Simulation A?
First Approach:
- SimulationA.java → Scenario 1 + Peak Injection Profile
- SimulationB.java → Scenario 1 + Soak Injection Profile
Second Approach:
- SimualtionA.java + “-Dtype=Peak” → Scenario 1 + Peak Profile
- SimulationA.java + “-Dtype=Spike” → Scenario 1 + Spike Profile
Im thinking about this because as more simulations are added to the project, the list of simulations could grow quite large, even when the changes to simulation is the injection profile and nothing else.