I have a JMeter script with multiple thread groups which are running concurrently. In one thread group PostProcessor
, I would like to check for a condition and stop ALL thread groups, and exit. Basically, I want to stop the entire test.
if (Integer.valueOf(prev.getResponseCode()) >= 400) {
// Stop the entire test in the next line.
}
How can I stop all thread groups at once, in a JMeter Script?
Please see:
- My JMeter version: 5.3
- Groovy version: 3.0.3