Gatling version: 3.11.5
Gatling flavor: java kotlin scala javascript typescript
Gatling build tool: maven gradle sbt bundle npm
I’m using Gatling 3.11.5 and I have a question:
It is possible to interrupt the execution of a scenario and run the next one in the chain.
Example:
scenario1.injectClosed(
rampConcurrentUsers(0).to(firstScenarioUsersCount).during(1),
constantConcurrentUsers(firstScenarioUsersCount).during(Duration.ofMinutes(10))
)
// Starts after scenario1
.andThen(scenario2)
If call into scenario1
exec(stopInjector("Stop"));
Then scenario2 is not started becouse execution stopped to all chain.
What do I need to do?
Prepare cookies in scenario 1. For all users from the CSV file.
Take a break for about 1-2 minutes.
To separate the load metrics from data preparation in scenario 1 from the actual load in scenario 2.
And then I use this data (cookies) in the second scenario.
Using feed.queue() in scenario 1 results in an exception.
Exception in thread “main” java.lang.IllegalStateException: Feeder csv(users.csv) is now empty, stopping engine