Below is my Gatling Scala code where I am running two simulations: importSimulation and retrieveSimulation.
Currently, importSimulation runs for 3 minutes but continues to execute until all requests are completed, which can take 5 to 6 minutes. As a result, retrieveSimulation gets very little time to run because the total maximum duration for both scenarios is set to 7 minutes.
I want importSimulation to run with 300 concurrent users for exactly 3 minutes and then force stop. After that, the next simulation, retrieveSimulation, should be triggered. How can I achieve this?
Actually we need to link two scenarios. The first scenario is used for generating test data while the second scenario is the actual test where we need to check the performance against the generated Test Data.
We want to run the second scenario for exactly 5 minutes.
Currently, firstScenario runs for 3 minutes but continues to execute until all requests are completed, which can take 5 to 6 minutes. As a result, second scenariosgets very little time to run because the total maximum duration for both scenarios is set to 8 minutes. Is there any way where I can forceStop 1st scenario after exactly 3 minutes so that second scenario runs for 5 minutes by setting maxDuration to 8 minutes (3 min first scenario + 5 mins second scenario)