Stop simulation if error_rate > x%

Hello there,

Probably a simple thing I'm missing, I'm trying to find a way to stop Gatling simulation if the percentage of failed requests is greater than a given value.

Alternatively stop the simulation if the test produce continuous errors for a certain period is also a solution.

Highly appreciate your support.

Many thanks.

Pujitha.

You can use Gatling assertions.
Link: https://gatling.io/docs/current/general/assertions/

Thanks

Thanks for your reply.

Yes, assertions can be used to evaluate the results, but I want to stop the test as soon as an assertion fails at the very first instance than running the test for the duration set in the simulation.

Any idea how?

No, that’s not possible with Gatling OSS.
However, we’ll be working on this kind of panic criteria for FrontLine.