我需要两个单独的线程组来运行(第二个组有无限循环计数)。当第一组完成时,停止第二组。如何确定第一组何时完成?
发布于 2014-10-26 16:57:26
这是我的工作:
props.put("DONE", "FALSE");int activeThreadCount = org.apache.jmeter.threads.JMeterContextService.getNumberOfThreads(); if (activeThreadCount <= 1) { props.put("DONE", "TRUE"); }添加具有以下内容的If控制器:
${__BeanShell( props.get("DONE") != null && props.get("DONE")=="TRUE")}
如果控制器内部停止当前线程。
https://stackoverflow.com/questions/26465338
复制相似问题