4

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?

Prasath
  • 73
  • 1
  • 8
  • 1
    Yes, you can do it by adding "Auto Stop Listener", as mentioned here: https://www.blazemeter.com/blog/using-the-jmeter-autostop-listener-how-to-do-it-right – dkb Nov 09 '18 at 16:11
  • Any feedback on answer ? If ok it should be accepted and upvoted so that it's helpful to others. Thanks – UBIK LOAD PACK Nov 12 '18 at 16:43
  • @UBIKLOADPACK - Thanks alot. It worked as expected!!! – Prasath Nov 16 '18 at 13:46

2 Answers2

6

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.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
0
  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.
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks @Dmitri - Taurus seems to be interesting. Gonna look into it and may be come up with some new threads of questions if required! – Prasath Nov 16 '18 at 13:48