Reputation: 1322
In my jmx script, I want each thread to login once per thread only. There are two methods for logging in. 90% of the time I want it to use method #1, 10% of the time I want it to use method #2.
How would I structure that?
If I use two Throughput
controllers, isn't there a chance it could try to call both login methods in one thread?
Upvotes: 0
Views: 115
Reputation: 168072
2 different samplers cannot be executed by one thread at the same time so it is fine to use Throughput Controller, I would configure it as follows:
"Per user" box does not matter in this case.
If you want to be totally sure that i.e. each 10th thread will go 2nd login path you can try alternative configuration:
((${__threadNum} % 10) == 0)
__threadNum is JMeter function which returns current thread number so if current thread number is multiple of 10, the thread will go the "10% way"
P.S. I wouldn't recommend implementing approach by link of Mr. UBIK LOAD PACK as it works only for "2 VUs with Loop of 50" scenario for any other combination distribution will be different.
Upvotes: 1