In my Test Plan, I have Thread Group with 5 Samplers. Is there a way with JMeter that I want to select one among the 5 samplers in Thread Group Randomly and do performance testing to only that particular sampler ?
0
votes
1 Answers
1
votes
Add User Defined Variables to your Test Plan and create i.e.
randomSamplervariable with the value of${__Random(0,4,)}(use __Random() function to generate a random number between 0 and 4 inclusively)Add Switch Controller to your Thread Group and use
${randomSampler}as the "Switch Value"Put your Samplers under the Switch Controller
That's it, each time you run the test the random Sampler will be chosen and executed:


