Discussion:
How to add delay between Loops?
Amit Kumar
2015-09-07 12:48:43 UTC
Permalink
Hello,

I want to perform load testing for an application with following scenario:

What I want to do is-

I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause between
loops? Is it possible to do this in JMeter?

My Thread Group setup is as follows:

*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever

*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK

And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
Nirdesh Pachoriya
2015-09-07 12:59:41 UTC
Permalink
You can use constant timer which can help you to introduce the delay.

Regards,
Nirdesh M Pachoriya
-----Original Message-----
From: Amit Kumar [mailto:***@gmail.com]
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?

Hello,

I want to perform load testing for an application with following scenario:

What I want to do is-

I want to schedule a load test for 10 mins (loop count = forever), but after each loop, I need a pause of 10 secs. So, how to add pause between loops? Is it possible to do this in JMeter?

My Thread Group setup is as follows:

*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever

*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK

And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment." www.cybage.com
Т���������������������������������������������������������������������ХF�V�7V'67&�&R�R���âW6W"�V�7V'67&�&T��WFW"�6�R��&pФf�"FF�F����6����G2�R��
Amit Kumar
2015-09-07 13:07:39 UTC
Permalink
Hi Nirdesh,

Thanks for the prompt reply.
I went through the JMeter documentation, but it says-

"If you want to have each thread pause for the same amount of time between
requests, use this timer."

As per my understanding the Constant Timer will add delay between threads
and not between loops. Please correct me if I am wrong.
Post by Nirdesh Pachoriya
You can use constant timer which can help you to introduce the delay.
Regards,
Nirdesh M Pachoriya
-----Original Message-----
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?
Hello,
What I want to do is-
I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause between
loops? Is it possible to do this in JMeter?
*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever
*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK
And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain
information from Cybage Software Private Limited which may be privileged,
confidential, or otherwise protected from disclosure. The information is
intended to be for the addressee(s) only. If you are not an addressee, any
disclosure, copy, distribution, or use of the contents of this message is
strictly prohibited. If you have received this electronic message in error
please notify the sender by reply e-mail to and destroy the original
message and all copies. Cybage has taken every reasonable precaution to
minimize the risk of malicious content in the mail, but is not liable for
any damage you may sustain as a result of any malicious content in this
e-mail. You should carry out your own malicious content checks before
opening the e-mail or attachment." www.cybage.com
--
Thanks and Regards,
Amit
Pratapi Hemant Patel
2015-09-07 13:11:08 UTC
Permalink
adding simply a constant timer will not serve the purpose as it introduces
delay within each requests.
A workaround can be used

Threadgroup
Post by Nirdesh Pachoriya
req 1
req 2
req 3
req 4
req 5
req 6
Simple Controller
Post by Nirdesh Pachoriya
constant timer
any dummy sampler (say debug sampler, or a http request sampler to a
dummy url)

Thanks and Regards
Hemant
9810752184 / 9013982184
Post by Nirdesh Pachoriya
You can use constant timer which can help you to introduce the delay.
Regards,
Nirdesh M Pachoriya
-----Original Message-----
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?
Hello,
What I want to do is-
I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause between
loops? Is it possible to do this in JMeter?
*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever
*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK
And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain
information from Cybage Software Private Limited which may be privileged,
confidential, or otherwise protected from disclosure. The information is
intended to be for the addressee(s) only. If you are not an addressee, any
disclosure, copy, distribution, or use of the contents of this message is
strictly prohibited. If you have received this electronic message in error
please notify the sender by reply e-mail to and destroy the original
message and all copies. Cybage has taken every reasonable precaution to
minimize the risk of malicious content in the mail, but is not liable for
any damage you may sustain as a result of any malicious content in this
e-mail. You should carry out your own malicious content checks before
opening the e-mail or attachment." www.cybage.com
sebb
2015-09-07 15:07:12 UTC
Permalink
On 7 September 2015 at 14:11, Pratapi Hemant Patel
Post by Pratapi Hemant Patel
adding simply a constant timer will not serve the purpose as it introduces
delay within each requests.
Timers are invoked before *all* samplers in scope, and are only
invoked before samplers.
Post by Pratapi Hemant Patel
A workaround can be used
Threadgroup
Post by Nirdesh Pachoriya
req 1
req 2
req 3
req 4
req 5
req 6
Simple Controller
Post by Nirdesh Pachoriya
constant timer
any dummy sampler (say debug sampler, or a http request sampler to a
dummy url)
You don't need the Simple Controller.

If you add the Timer as a child of a single sampler it will only be
invoked before that sampler.

Alternatively you can use the Test Sampler, which does not generate a
sample, but can pause the test.
Post by Pratapi Hemant Patel
Thanks and Regards
Hemant
9810752184 / 9013982184
Post by Nirdesh Pachoriya
You can use constant timer which can help you to introduce the delay.
Regards,
Nirdesh M Pachoriya
-----Original Message-----
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?
Hello,
What I want to do is-
I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause between
loops? Is it possible to do this in JMeter?
*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever
*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK
And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain
information from Cybage Software Private Limited which may be privileged,
confidential, or otherwise protected from disclosure. The information is
intended to be for the addressee(s) only. If you are not an addressee, any
disclosure, copy, distribution, or use of the contents of this message is
strictly prohibited. If you have received this electronic message in error
please notify the sender by reply e-mail to and destroy the original
message and all copies. Cybage has taken every reasonable precaution to
minimize the risk of malicious content in the mail, but is not liable for
any damage you may sustain as a result of any malicious content in this
e-mail. You should carry out your own malicious content checks before
opening the e-mail or attachment." www.cybage.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Amit Kumar
2015-09-08 07:08:39 UTC
Permalink
Thank you for your help guys, really appreciate.
Post by sebb
On 7 September 2015 at 14:11, Pratapi Hemant Patel
Post by Pratapi Hemant Patel
adding simply a constant timer will not serve the purpose as it
introduces
Post by Pratapi Hemant Patel
delay within each requests.
Timers are invoked before *all* samplers in scope, and are only
invoked before samplers.
Post by Pratapi Hemant Patel
A workaround can be used
Threadgroup
Post by Nirdesh Pachoriya
req 1
req 2
req 3
req 4
req 5
req 6
Simple Controller
Post by Nirdesh Pachoriya
constant timer
any dummy sampler (say debug sampler, or a http request sampler to a
dummy url)
You don't need the Simple Controller.
If you add the Timer as a child of a single sampler it will only be
invoked before that sampler.
Alternatively you can use the Test Sampler, which does not generate a
sample, but can pause the test.
Post by Pratapi Hemant Patel
Thanks and Regards
Hemant
9810752184 / 9013982184
Post by Nirdesh Pachoriya
You can use constant timer which can help you to introduce the delay.
Regards,
Nirdesh M Pachoriya
-----Original Message-----
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?
Hello,
I want to perform load testing for an application with following
What I want to do is-
I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause between
loops? Is it possible to do this in JMeter?
*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever
*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK
And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain
information from Cybage Software Private Limited which may be
privileged,
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
confidential, or otherwise protected from disclosure. The information is
intended to be for the addressee(s) only. If you are not an addressee,
any
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
disclosure, copy, distribution, or use of the contents of this message
is
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
strictly prohibited. If you have received this electronic message in
error
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
please notify the sender by reply e-mail to and destroy the original
message and all copies. Cybage has taken every reasonable precaution to
minimize the risk of malicious content in the mail, but is not liable
for
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
any damage you may sustain as a result of any malicious content in this
e-mail. You should carry out your own malicious content checks before
opening the e-mail or attachment." www.cybage.com
---------------------------------------------------------------------
--
Thanks and Regards,
Amit
Amit Kumar
2015-09-08 07:18:53 UTC
Permalink
Hello,

As Sebb suggested, I changed the setup as-
Post by Amit Kumar
req1
req2
req3
req4
req5
req6
req7
Test Action (Action: Pause, Duration: 10secs).
It's working perfectly fine.

@Pratapi, the workaround you suggested is also working, but it was
generating an additional sample for dummy sampler.
Post by Amit Kumar
Thank you for your help guys, really appreciate.
On 7 September 2015 at 14:11, Pratapi Hemant Patel
Post by Pratapi Hemant Patel
adding simply a constant timer will not serve the purpose as it
introduces
Post by Pratapi Hemant Patel
delay within each requests.
Timers are invoked before *all* samplers in scope, and are only
invoked before samplers.
Post by Pratapi Hemant Patel
A workaround can be used
Threadgroup
Post by Nirdesh Pachoriya
req 1
req 2
req 3
req 4
req 5
req 6
Simple Controller
Post by Nirdesh Pachoriya
constant timer
any dummy sampler (say debug sampler, or a http request sampler to a
dummy url)
You don't need the Simple Controller.
If you add the Timer as a child of a single sampler it will only be
invoked before that sampler.
Alternatively you can use the Test Sampler, which does not generate a
sample, but can pause the test.
Post by Pratapi Hemant Patel
Thanks and Regards
Hemant
9810752184 / 9013982184
Post by Nirdesh Pachoriya
You can use constant timer which can help you to introduce the delay.
Regards,
Nirdesh M Pachoriya
-----Original Message-----
Sent: Monday, September 7, 2015 6:19 PM
To: JMeter Users List
Subject: How to add delay between Loops?
Hello,
I want to perform load testing for an application with following
What I want to do is-
I want to schedule a load test for 10 mins (loop count = forever), but
after each loop, I need a pause of 10 secs. So, how to add pause
between
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
loops? Is it possible to do this in JMeter?
*Thread Properties:*
Number of Threads: 100
Ram-up: 1 sec
Loop Count: Forever
*Scheduler:*
Start Time: 2015/09/07 18:01:00
End Time: 2015/09/07 18:11:00
Duration: BLANK
Startup Delay: BLANK
And my Thread Group has 6 requests?
--
Thanks and Regards,
Amit
"Legal Disclaimer: This electronic message and all contents contain
information from Cybage Software Private Limited which may be
privileged,
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
confidential, or otherwise protected from disclosure. The information
is
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
intended to be for the addressee(s) only. If you are not an addressee,
any
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
disclosure, copy, distribution, or use of the contents of this message
is
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
strictly prohibited. If you have received this electronic message in
error
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
please notify the sender by reply e-mail to and destroy the original
message and all copies. Cybage has taken every reasonable precaution to
minimize the risk of malicious content in the mail, but is not liable
for
Post by Pratapi Hemant Patel
Post by Nirdesh Pachoriya
any damage you may sustain as a result of any malicious content in this
e-mail. You should carry out your own malicious content checks before
opening the e-mail or attachment." www.cybage.com
---------------------------------------------------------------------
--
Thanks and Regards,
Amit
--
Thanks and Regards,
Amit
Continue reading on narkive:
Loading...