jmeter jsr223 sampler里可以使用如下代码实现,立即停止所有线程测试

ctx.getEngine().stopEngineNow()