I have a folder with many JSON-Files and I would like to send them parallel to a Webservice using jmeter.
I already used a BeanShell Sampler to collect the files into jmeter-variables. Then I used a ForEach Controller to perform the HTTP Request (see this thread).
But the problem is, when using a thread count > 1, the json-files are processed multiple times. Each thread loops through the list of JSON-files for its own.
Do you know how multiple threads can share the output variable of a ForEach Controller?
See jmeter configuration
. There are 3 (threads) * 2 (files) = 6 debug outputs. But I would like that e.g. thread 1 processes first.json, thread 3 processes second.json and thread 2 does not have any left. So no file is processed multiple times.