Stopping Gatling Java Simulation during process

Hello together.

I have a Java application that starts a simulation via a Rest endpoint on a pod in the AWS Cloud. The Java method “Gatling.fromMap” is used for this. If my application, which I want to load test, shows negative effects during the runtime of the test and gets failures, I would like to stop the test immediately before the regular time expires. This would then be done via another rest endpoint (e.g. test/stop/{test-id}). How is this possible using Gatling Java?

Hello,

I have a Java application that starts a simulation

This is not a supported usage but some custom platform developed in-house. This is not something we can help with.

If my application, which I want to load test, shows negative effects during the runtime of the test and gets failures, I would like to stop the test immediately before the regular time expires.

This is exactly a feature we’re going to introduce in Gatling Enterprise in a few months.

Thanks for your fast response.

Does this mean that I can no cancel a simulation once it has been started?

You can kill the process.
You can have a virtual user call stopInjector.
But you can’t do that based on current stats. This is going to be a Gatling Enterprise only feature.

1 Like

stopInjectorIf solved my problem. many thanks :grinning: