1
votes

I want to simulate a scenario in which a page contains multiple requests for differ data. All runs concurrently. I created a Thread Group with all those requests and ran it for 10 users(Threads) in 0sec ramp up time. But in this Test Plan all users starts concurrent but they all process requests in sequential way i.e.(always completes first request then starts 2nd,then third,so on).

I want that all requests of each user starts at same time then completes according to their response time (Like if 3rd takes less time than first then it should complete before 1st and 2nd). I have tried Synchronize time.

1
If you tried with the synchronize timer, what is the result? Does it not work as you expected? what is the actual behavior? share the screenshot of synchronize timerNaveen Kumar R B
Actually synchronize timer holds the threads not the requests. Output is like if we group synchronize timer by 10, no. of threads in Thread Group is 10 and Thread Group has 3 requests , then any one from 10 users(Threads) will start first. Output in view result table is like first request of all 10 threads, then 2nd request of all 10 threads and then 3rd.... @NaveenMeet
well, that is the expected behaviour with Synchorize Timer. It stops the threads in order to reach the number you specified and once reached, all will be released at the same time. If you want all request to be executed without WAITING, then there is NO option as of now. you can follow the alternatives mentioned by Dmitri.Naveen Kumar R B

1 Answers

2
votes

I don't think it is possible at the moment, the relevant enhancement is being tracked as Bug 53159

In the mean time you have 2 options:

  1. Use different Thread Groups to kick off the requests. If you need to synchronize the requests you can use i.e. Inter-Thread Communication plugin.
  2. Develop some custom code using JSR223 Sampler or even create your custom sampler, see How to Load Test AJAX/XHR Enabled Sites With JMeter for details on how this can be done.