How to insert delay between each requests in Jmeter
I wanted to execute a Test Plan as Below. Example : I wanted every http request should take delay of two minutes
- http_request_1,
- delay (2 minutes)
- http_request_2
All request are in same thread group
Solution 1:
- Create a transaction controller in Thread group
- put all your http requests under this transaction controller
- add constant timer (with value as 2 min) to transaction controller (this way it will be applicable to all request within that transaction controller)
- run your jmeter script
or if only 2 request are there then add only 1 constant timer in between both the requests.
Solution 2:
The simplest way is to add a single 'Constant Timer' to your thread group at the same level as your HTTP requests.
Right click Thread Group > Add > Timer > Constant Timer.
Set the timer value to however many milliseconds you need (in your case 120000), and it inserts a delay between all requests in that thread group.