In my JMeter test I have, as part of the setup phase, a Loop Controller that calls a REST endpoint n times (n is defined in a single line csv file). The result of a Counter is used in the call to the endpoint. This setup phase takes a long time to execute, does anyone know if it is possible to execute the loop iterations in parallel? I have looked at https://www.blazemeter.com/blog/how-to-use-the-parallel-controller-in-jmeter/ but that doesn't seem to provide a solution for parallel execution within a Loop Controller
0
votes
1 Answers
0
votes
If you need parallel execution - you need to add more threads.
- Given you're in a "setup phase" it would be logically compliant to use setUp Thread Group for this
Now you need to define dynamic number of threads according to you
n
, givenn.
resides inn.csv
which lives in "bin" folder of your JMeter installation you can read its value using __FileToString() function as${__FileToString(n.csv,,)}
Now you can add a HTTP Request as a child of the thread group - it will be executed by as many parallel threads as you set it up in the
n.csv
file