I need two separate thread groups to be run(Second group have infinite loop count). And when the first group is done stop the second one. How can I determine when the first group is done?
That's work for me:
props.put("DONE", "FALSE");
int activeThreadCount = org.apache.jmeter.threads.JMeterContextService.getNumberOfThreads();
if (activeThreadCount <= 1)
{
props.put("DONE", "TRUE");
}
Add If Controller with:
${__BeanShell( props.get("DONE") != null && props.get("DONE")=="TRUE")}
Stop Current Thread inside If Controller.