Reputation: 23
I have three requests(req1,req2,req3) which execute based on the CSV config data, the first request will execute 1 time, request 2 will also execute 1 time and request 3 will execute 12 times, so request 2 input is dependent on the request 1 output and request3 input is dependent on request 2 output like that I have to loop for 10 times. so my question is, I want to run the requests with 10 users but when I run like that it's failing due to users are picking the requests randomly and getting lost the data and failing the HTTP requests, Can you please suggest to me which approach will help to run with multiple users parallel with the group of HTTP requests (req1 then req2 then req3) in the same order for 10 times.
I have tried with the Critical section controller which is executing one user at a time and the Parallel controller which is picking the requests randomly Ex: It's picking Req2, Req3, and then Req1.
Below I am attaching my thread group structure, synchronized timer properties, and thread group properties. [1]: https://i.sstatic.net/P1fMn.jpg
Upvotes: 0
Views: 3041
Reputation: 168072
The easiest is going for the Parallel Controller, it executes all its children in parallel so if you need to invoke req3
10 times - put it 10 times under the Parallel Controller.
You can use Test Fragment and Module Controller like:
Upvotes: 0