Let's say I have a user-defined paramater bodies
which is a space-delimited list of arbitrary length. I need to create a loop of HTTP requests based on the length of bodies
and use its content.
For example if bodies=a b c
, then I need to make a HTTP POST request using a
in the header, then another using b
in the header, and so on.
How can I do this in JMeter? So far, I've been able to use a JSR223 Sampler to set a variable NUM_ITERATIONS
(would be 3 in this case), but I don't know how to loop using the correct parameter in each iteration.