I have two thread groups , and requirement is that I have to run first thread group by remote machines(distributed testing) using the JMeter option "remote start all" , while second thread group has to be run by only one machine or only by localhost using option "start". Please suggest how do I achieve such scenario in JMeter.
0
votes
1 Answers
0
votes
As all remote slaves are executing the same script I would go for the following approach:
- Put all the requests in 1st and 2nd Thread Groups under the If Controller
Use conditions which return hostname or IP address (__machineName() and __machineIP functions correspondingly) like:
"${__machineIP()}" == "10.10.10.1"
This way If Controller's children will be executed only if hostname or IP address matches what's provided in "Condition"
By the way, JMeter master doesn't execute test, it only sends test script to slaves and collects results.