67

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

user3282573
  • 687
  • 1
  • 5
  • 9
  • Did you try to create such test plan? Did you rad this http://jmeter.apache.org/usermanual/component_reference.html#timers ? – olyv Feb 25 '14 at 09:39

3 Answers3

75
  1. Create a transaction controller in Thread group
  2. put all your http requests under this transaction controller
  3. add constant timer (with value as 2 min) to transaction controller (this way it will be applicable to all request within that transaction controller)
  4. run your jmeter script

or if only 2 request are there then add only 1 constant timer in between both the requests.

Nachiket Kate
  • 8,473
  • 2
  • 27
  • 45
  • 17
    IMHO you don't need transaction controller. You can use every controller you like. And if you have only the two http requests you don't need any controller just put the timer directly under a thread group. – thuri Feb 26 '14 at 14:40
  • @thuri The answer says the same at the last line. – Eugène Adell Dec 13 '20 at 10:12
54

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.

enter image description here

Dale C. Anderson
  • 2,280
  • 1
  • 24
  • 24
6
  1. Create a transaction controller in Thread group
  2. put all your http requests under this transaction controller

  3. add constant timer (with value as 2 min - please find the 2nd screen-shot) to transaction controller (this way it will be applicable to all request within that transaction controller)

constant timer in http request

Set the 2mins in ms

  1. run your jmeter script

or if only 2 request are there then add only 1 constant timer in between both the requests. Please find below screen-shot

between 2 requests

tk_
  • 16,415
  • 8
  • 80
  • 90