You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jitendra Kumar Mohanty <Ji...@infogain.com> on 2008/06/20 07:51:27 UTC

Regarding constat timer

Hi

I want to introduce delay between two requests can any body pl. tell me
which one is the best way to do.

i. Adding of Constant timer as a child of 1st request.

Or 

ii. Adding the Constant timer after the 1st request.


Thanks Much,
Jitendra



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


Re: Regarding constat timer

Posted by Ravindra Gupta <ra...@gmail.com>.
make it a child of R2.
sebb is correct you can use either way

On 6/20/08, Jitendra Kumar Mohanty <Ji...@infogain.com> wrote:
> Hi Sebb,
>
> Actually I have two requests R1 & R2, want to introduce some delay
> before sending the R2 to the server.
>
> So in this case also do need to add the timer as child ?
>
> Thanks in advance,
>
> Jitendra
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, June 20, 2008 4:12 PM
> To: JMeter Users List
> Subject: Re: Regarding constat timer
>
> On 20/06/2008, Jitendra Kumar Mohanty <Ji...@infogain.com>
> wrote:
> > Hi
> >
> >  I want to introduce delay between two requests can any body pl. tell
> me
> >  which one is the best way to do.
> >
> >  i. Adding of Constant timer as a child of 1st request.
> >
> >  Or
> >
> >  ii. Adding the Constant timer after the 1st request.
> >
>
> Neither, because timers are processed before any samplers in scope.
>
> Either:
>
> Add the timer as a child of the second request.
>
> Or:
>
> Use Test Action sampler.
>
> >  Thanks Much,
> >  Jitendra
> >
> >
> >
> >  ---------------------------------------------------------------------
> >  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
>
>
> ---------------------------------------------------------------------
> 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: controlling loops

Posted by "Marmelstein, John" <jo...@bearingpoint.com>.
Hi,
Thanks for the reply, I'll probably go with those, 
JM


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 23 July 2008 17:15
To: JMeter Users List
Subject: Re: controlling loops

One way might be:

Add User Parameter as a child of the first sample to save the current
time as START.
Add a child timer to a Test Action at the end of the loop, and
...


***************************************************************************************************
The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
*************************************************************************************************** 
 
BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.

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


RE: specification of box to host JMeter

Posted by "Marmelstein, John" <jo...@bearingpoint.com>.
Thanks for your answer,
JM


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 24 July 2008 13:14
To: JMeter Users List
Subject: Re: specification of box to host JMeter

On 24/07/2008, Marmelstein, John <jo...@bearingpoint.com>
wrote:
> Hi,
>  I wonder if someone can tell me how to decide what spec of machine is
>  needed to host JMeter?  I need to ask for the machine before the test
>  project starts.

Search the mail archives; there have been some postings about this.

>  I will be running a pretty typical test. Http samplers only. About
100
>  threads. Reasonable 'think times'. I can use CSV output files rather
>  than xml. Running non-GUI.

That does not sound like a very onerous job for JMeter.

Just try a sample test with any system available.

>  Thanks!
>  JM

***************************************************************************************************
The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
*************************************************************************************************** 
 
BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.

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


Re: specification of box to host JMeter

Posted by sebb <se...@gmail.com>.
On 24/07/2008, Marmelstein, John <jo...@bearingpoint.com> wrote:
> Hi,
>  I wonder if someone can tell me how to decide what spec of machine is
>  needed to host JMeter?  I need to ask for the machine before the test
>  project starts.

Search the mail archives; there have been some postings about this.

>  I will be running a pretty typical test. Http samplers only. About 100
>  threads. Reasonable 'think times'. I can use CSV output files rather
>  than xml. Running non-GUI.

That does not sound like a very onerous job for JMeter.

Just try a sample test with any system available.

>  Thanks!
>  JM
>
>  ***************************************************************************************************
>  The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
>  ***************************************************************************************************
>
>  BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.
>
>  ---------------------------------------------------------------------
>  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


specification of box to host JMeter

Posted by "Marmelstein, John" <jo...@bearingpoint.com>.
Hi,
I wonder if someone can tell me how to decide what spec of machine is
needed to host JMeter?  I need to ask for the machine before the test
project starts.

I will be running a pretty typical test. Http samplers only. About 100
threads. Reasonable 'think times'. I can use CSV output files rather
than xml. Running non-GUI.

Thanks!
JM

***************************************************************************************************
The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
*************************************************************************************************** 
 
BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.

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


RE: controlling loops

Posted by Ori Marco <or...@praxell.com>.
About breaking a loop, can't this option be implemented because it can
be a huge burden if most samplers inside the loop.

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
http://www.praxell.com
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, July 23, 2008 7:15 PM
To: JMeter Users List
Subject: Re: controlling loops

On 23/07/2008, Marmelstein, John <jo...@bearingpoint.com>
wrote:
> Hi,
>  I'm trying to control my loops, and I'm wondering if there is a good
way
>  to do it. As a way to start the loop, I could use Loop Controller, or
>  set the loop flag on the thread group. The things I need to do are-
>
>  1-  Control the duration of each loop. I want each loop to take one
>  minute. For example, say the samplers generally finish in about 10
>  seconds. I would want a pause of 50 before the next iteration. I know
>  this could be done (pretty much) with a constant throughput timer,
but I
>  don't know how many samplers there will be per iteration.

One way might be:

Add User Parameter as a child of the first sample to save the current
time as START.
Add a child timer to a Test Action at the end of the loop, and
calculate the remaining time using something like:

${__longSum(60000,${START},-${__time()})}

The Test Action will then pause for the appropriate time.

>  2-  Break out of a loop. I would like to break out of a loop (for
>  example go back to the start of a loop controller) under some
condition
>  (maybe in an IF controller). Anyone know how to do that?

Not easy; I think the only way is to use an If Controller for each
sampler apart from the first:

Loop
   Sample 1
   IF continue
    Sample 2
   IF continue
    Sample 3
etc.

>  Thanks!
>  John
>
>
>
>
************************************************************************
***************************
>  The information in this email is confidential and may be legally
privileged. Access to this email by anyone other than the intended
addressee is unauthorized. If you are not the intended recipient of this
message, any review, disclosure, copying, distribution, retention, or
any action taken or omitted to be taken in reliance on it is prohibited
and may be unlawful. If you are not the intended recipient, please reply
to or forward a copy of this message to the sender and delete the
message, any attachments, and any copies thereof from your system.
>
************************************************************************
***************************
>
>  BearingPoint Ireland Limited is a private limited company which is
incorporated in Bermuda No. 28723, registered as a branch in Dublin,
Ireland No. E4448. Registered office: Montague House, Adelaide Road,
Dublin 2.
>
>  ---------------------------------------------------------------------
>  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


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


Re: controlling loops

Posted by sebb <se...@gmail.com>.
On 23/07/2008, Marmelstein, John <jo...@bearingpoint.com> wrote:
> Hi,
>  I'm trying to control my loops, and I'm wondering if there is a good way
>  to do it. As a way to start the loop, I could use Loop Controller, or
>  set the loop flag on the thread group. The things I need to do are-
>
>  1-  Control the duration of each loop. I want each loop to take one
>  minute. For example, say the samplers generally finish in about 10
>  seconds. I would want a pause of 50 before the next iteration. I know
>  this could be done (pretty much) with a constant throughput timer, but I
>  don't know how many samplers there will be per iteration.

One way might be:

Add User Parameter as a child of the first sample to save the current
time as START.
Add a child timer to a Test Action at the end of the loop, and
calculate the remaining time using something like:

${__longSum(60000,${START},-${__time()})}

The Test Action will then pause for the appropriate time.

>  2-  Break out of a loop. I would like to break out of a loop (for
>  example go back to the start of a loop controller) under some condition
>  (maybe in an IF controller). Anyone know how to do that?

Not easy; I think the only way is to use an If Controller for each
sampler apart from the first:

Loop
   Sample 1
   IF continue
    Sample 2
   IF continue
    Sample 3
etc.

>  Thanks!
>  John
>
>
>
>  ***************************************************************************************************
>  The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
>  ***************************************************************************************************
>
>  BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.
>
>  ---------------------------------------------------------------------
>  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


controlling loops

Posted by "Marmelstein, John" <jo...@bearingpoint.com>.
Hi,
I'm trying to control my loops, and I'm wondering if there is a good way
to do it. As a way to start the loop, I could use Loop Controller, or
set the loop flag on the thread group. The things I need to do are-

1-  Control the duration of each loop. I want each loop to take one
minute. For example, say the samplers generally finish in about 10
seconds. I would want a pause of 50 before the next iteration. I know
this could be done (pretty much) with a constant throughput timer, but I
don't know how many samplers there will be per iteration.

2-  Break out of a loop. I would like to break out of a loop (for
example go back to the start of a loop controller) under some condition
(maybe in an IF controller). Anyone know how to do that?

Thanks!
John



***************************************************************************************************
The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
*************************************************************************************************** 
 
BearingPoint Ireland Limited is a private limited company which is incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.

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


RE: Regarding constat timer

Posted by Jitendra Kumar Mohanty <Ji...@infogain.com>.
Hi Sebb,

Actually I have two requests R1 & R2, want to introduce some delay
before sending the R2 to the server.

So in this case also do need to add the timer as child ?

Thanks in advance,

Jitendra

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, June 20, 2008 4:12 PM
To: JMeter Users List
Subject: Re: Regarding constat timer

On 20/06/2008, Jitendra Kumar Mohanty <Ji...@infogain.com>
wrote:
> Hi
>
>  I want to introduce delay between two requests can any body pl. tell
me
>  which one is the best way to do.
>
>  i. Adding of Constant timer as a child of 1st request.
>
>  Or
>
>  ii. Adding the Constant timer after the 1st request.
>

Neither, because timers are processed before any samplers in scope.

Either:

Add the timer as a child of the second request.

Or:

Use Test Action sampler.

>  Thanks Much,
>  Jitendra
>
>
>
>  ---------------------------------------------------------------------
>  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


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


Re: Regarding constat timer

Posted by sebb <se...@gmail.com>.
On 20/06/2008, Jitendra Kumar Mohanty <Ji...@infogain.com> wrote:
> Hi
>
>  I want to introduce delay between two requests can any body pl. tell me
>  which one is the best way to do.
>
>  i. Adding of Constant timer as a child of 1st request.
>
>  Or
>
>  ii. Adding the Constant timer after the 1st request.
>

Neither, because timers are processed before any samplers in scope.

Either:

Add the timer as a child of the second request.

Or:

Use Test Action sampler.

>  Thanks Much,
>  Jitendra
>
>
>
>  ---------------------------------------------------------------------
>  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