0
votes

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

1

1 Answers

0
votes

If you need parallel execution - you need to add more threads.

  1. Given you're in a "setup phase" it would be logically compliant to use setUp Thread Group for this
  2. Now you need to define dynamic number of threads according to you n, given n. resides in n.csv which lives in "bin" folder of your JMeter installation you can read its value using __FileToString() function as ${__FileToString(n.csv,,)}

    enter image description here

  3. 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

    enter image description here