You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by rats123 <ra...@tester.co.nz> on 2011/05/16 00:15:16 UTC

Random timer for each request?

Hi,

I need to put random delays between each request (sample) I'm calling so as
to emulate a real user stepping through webpages. Is there a global timer I
can use for this?

Thanks

--
View this message in context: http://jmeter.512774.n5.nabble.com/Random-timer-for-each-request-tp4398676p4398676.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Random timer for each request?

Posted by "Pablo A. Osso" <pa...@gmail.com>.
Hi,

You can use a Constant Timer and a Random Variable:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Constant_Timer
<http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Constant_Timer>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Random_Variable

Regards

On Sun, May 15, 2011 at 7:15 PM, rats123 <ra...@tester.co.nz> wrote:

> Hi,
>
> I need to put random delays between each request (sample) I'm calling so as
> to emulate a real user stepping through webpages. Is there a global timer I
> can use for this?
>
> Thanks
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Random-timer-for-each-request-tp4398676p4398676.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Random timer for each request?

Posted by sebb <se...@gmail.com>.
On 15 May 2011 23:15, rats123 <ra...@tester.co.nz> wrote:
> Hi,
>
> I need to put random delays between each request (sample) I'm calling so as
> to emulate a real user stepping through webpages. Is there a global timer I
> can use for this?

That is how all timers work:

http://jakarta.apache.org/jmeter/usermanual/test_plan.html#timers

> Thanks
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Random-timer-for-each-request-tp4398676p4398676.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Random timer for each request?

Posted by rats123 <ra...@tester.co.nz>.
Thanks to everyone for their help.

--
View this message in context: http://jmeter.512774.n5.nabble.com/Random-timer-for-each-request-tp4398676p4401879.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Random timer for each request?

Posted by Adrian Speteanu <as...@gmail.com>.
Hey,

Use the gaussian random timer, its the best.

It has the advantage of giving random timeouts with a higher probability for
a value in the middle of the range (at the end if you plot all numbers
returned on the rate of occurrence by it you'll have a gaussian
distribution). so if you know that a user spends an average of x seconds on
a single page and sessions usually last 9-15 page imprints and a total of y
minutes, its pretty easy to estimate a realistic deviation from the average
on that single page.

Read more about the offset and deviation so you'll understand how to
configure them.

Good luck,
Adrian S

On Mon, May 16, 2011 at 1:15 AM, rats123 <ra...@tester.co.nz> wrote:

> Hi,
>
> I need to put random delays between each request (sample) I'm calling so as
> to emulate a real user stepping through webpages. Is there a global timer I
> can use for this?
>
> Thanks
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Random-timer-for-each-request-tp4398676p4398676.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>