I have a work flow designed in JMeter, which I want to execute parallelly. Please refer the image attached. One way to do it that I can use distributed load system and execute the same test plan parallelly. But I have only one machine. Currently I am using parallel controller for executing this and I wonder there must be intelligent way of handling this. Any help on such ?
I don't think your setup is correct, the Parallel Controller executes its children in parallel, it means that
Retrieve bearer token
, retrieve country details
, etc. will be executed at exactly the same moment so if retrieve country details
requests needs the token - it will failSo I would recommend:
Get rid of the parallel controllers (unless I misunderstood something and all these 5 requests really need to be executed at the same time)
Get rid of these User1
, User2
, etc and instead parameterize your test using i.e. CSV Data Set Config so each JMeter thread (virtual user) would get its own credentials from the CSV file
Define the required amount of threads (virtual users) and loops (or test duration) on Thread Group level
this way JMeter will start 5 threads (virtual users) in parallel and they will be executing Samplers for 100 iterations or 300 seconds