我有一个 JMeter 脚本,其中包含同时运行的多个线程组。在一个线程组PostProcessor
中,我想检查一个条件并停止所有线程组,然后退出。基本上,我想停止整个测试。
if (Integer.valueOf(prev.getResponseCode()) >= 400) {
// Stop the entire test in the next line.
}
如何在 JMeter 脚本中一次停止所有线程组?
请参见:
- 我的 JMeter 版本:5.3
- Groovy 版本:3.0.3