I am trying to run 5 Thread Groups.
How I wants this to work is,
So far what I thought was to add if controller
into thread 3 and 4, set a flag on the top threads and set that flag
true
once thread 1 and 2 are done, and add that condition to if controller
.
Really appreciate if anyone can help me with this.
Thanks in advance.
You can use your flag concept to deal with this issue. Just you need to communicate with all thread groups. To communicate between thread groups, you can use below method:
props.put("var","value"); // set property in 1st thread group
props.get("var"); // get property in 2nd thread group
Alternatively you can user "Inter-Thread Communication" plugins in JMeter.
This is not something you can do, at Test Plan level you have only 2 options:
So it would be easier to go for ie Parallel Controller so you would have only one Thread Group and 5 Samplers organised like:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.