JMeter How to stop the test when we reach specific error rate

Viewed 1099

I am running a performance test in JMeter. I wonder how to stop/abort the test exactly when it reaches 5% percentage.

Do we have an option like that?

2 Answers

First install plugins-manager by download jar, putting it in lib/ext and restarting jmeter.

Then install Auto-Stop Listener plugin:

Auto-Stop install

Add it to your plan and configure it this way:

Error Rate configuration

Note I have put 0 for other criterions to disable them.

  1. One of the options is using AutoStop plugin. Example test plan: AutoStopExample_ErrRate.jmx
  2. You can run your JMeter test using Taurus tool as a wrapper, this way you will have real-time console and/or web reporting and possibility to benefit from extra features, one of them is Pass/Fail Criteria Subsystem which is powerful and flexible way of applying custom failure conditions to your test. Moreover it will return non-zero exit code which makes your test scripting and CI friendly. Check out Navigating your First Steps Using Taurus for more details if needed.
Related