You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bruno Charloup <bc...@jouve.fr> on 2005/11/25 16:53:18 UTC
How to use constant timer only once ?
Hi all,
I try to create a scenario with the following kind of sequence :
http_request_1
http_request_2 (with wait 10 secondes the 1st time (the 1st loop), and only
2 secondes next times)
http_request_3
Then I make the following thing :
simple controller
|- http_request_1
simple controller
|- only once controller
| |- constant timer 8000
|-constant timer 2000 (because 2000 + 8000 = 10 secondes)
|- http_request_2
simple controller
|- http_request_3
With such organisation, result is not as I expect ...
I don't know how to use If Controller (and if it is the right controller to
use) : in the document an example is given with comparison to ${count} but I
don't know how (where ?) to increase ${count} (in a loop controller ?) ...
Any help would be appreciate.
Thanks in advance.
--
Bruno
RE: How to use constant timer only once ?
Posted by Bruno Charloup <bc...@jouve.fr>.
OK, I must add "User Defined variables" item (from Config Element menu)
under my http sampler.
Thanks.
-----Message d'origine-----
De : Noam Paz [mailto:noam.paz@db.com]
Envoyé : vendredi 25 novembre 2005 17:57
À : JMeter Users List
Objet : RE: How to use constant timer only once ?
Bruno, just set a second value to the same variable under the second
request...
Best regards / Viele Grüße
Noam Paz
"Bruno Charloup" <bc...@jouve.fr>
25.11.2005 17:36
To
"'JMeter Users List'" <jm...@jakarta.apache.org>
cc
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org>
Subject
RE: How to use constant timer only once ?
Seb, Thanks for this answer
How to change the value of a variable in a test plan ? (I know how to define
it, but no how to change it)
-----Message d'origine-----
De : sebb [mailto:sebbaz@gmail.com]
Envoyé : vendredi 25 novembre 2005 17:17 À : JMeter Users List Objet : Re:
How to use constant timer only once ?
On 25/11/05, Bruno Charloup <bc...@jouve.fr> wrote:
> Hi all,
> I try to create a scenario with the following kind of sequence :
>
> http_request_1
> http_request_2 (with wait 10 secondes the 1st time (the 1st loop), and
> only
> 2 secondes next times)
> http_request_3
>
> Then I make the following thing :
> simple controller
> |- http_request_1
>
> simple controller
> |- only once controller
> | |- constant timer 8000
I think timers only get invoked if there is an associated sampler.
> |-constant timer 2000 (because 2000 + 8000 = 10 secondes)
> |- http_request_2
>
> simple controller
> |- http_request_3
>
> With such organisation, result is not as I expect ...
What do you get then?
> I don't know how to use If Controller (and if it is the right
> controller to
> use) : in the document an example is given with comparison to ${count}
> but I don't know how (where ?) to increase ${count} (in a loop
> controller
?) ...
>
You could try defining a variable to hold the wait time.
Set it in the test plan to 10 seconds.
Reset it to 2 seconds after the first sample (does not matter if it is reset
each time) - this will need to be done at a lower level than the main test
loop, e.g. as a child of the simple controller with http_request_3.
S.
---------------------------------------------------------------------
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
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
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: How to use constant timer only once ?
Posted by Noam Paz <no...@db.com>.
Bruno, just set a second value to the same variable under the second request...
Best regards / Viele Grüße
Noam Paz
"Bruno Charloup" <bc...@jouve.fr>
25.11.2005 17:36 To
"'JMeter Users List'" <jm...@jakarta.apache.org>
cc
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org> Subject
RE: How to use constant timer only once ?
Seb, Thanks for this answer
How to change the value of a variable in a test plan ? (I know how to define
it, but no how to change it)
-----Message d'origine-----
De : sebb [mailto:sebbaz@gmail.com]
Envoyé : vendredi 25 novembre 2005 17:17
À : JMeter Users List
Objet : Re: How to use constant timer only once ?
On 25/11/05, Bruno Charloup <bc...@jouve.fr> wrote:
> Hi all,
> I try to create a scenario with the following kind of sequence :
>
> http_request_1
> http_request_2 (with wait 10 secondes the 1st time (the 1st loop), and
> only
> 2 secondes next times)
> http_request_3
>
> Then I make the following thing :
> simple controller
> |- http_request_1
>
> simple controller
> |- only once controller
> | |- constant timer 8000
I think timers only get invoked if there is an associated sampler.
> |-constant timer 2000 (because 2000 + 8000 = 10 secondes)
> |- http_request_2
>
> simple controller
> |- http_request_3
>
> With such organisation, result is not as I expect ...
What do you get then?
> I don't know how to use If Controller (and if it is the right
> controller to
> use) : in the document an example is given with comparison to ${count}
> but I don't know how (where ?) to increase ${count} (in a loop controller
?) ...
>
You could try defining a variable to hold the wait time.
Set it in the test plan to 10 seconds.
Reset it to 2 seconds after the first sample (does not matter if it is reset
each time) - this will need to be done at a lower level than the main test
loop, e.g. as a child of the simple controller with http_request_3.
S.
---------------------------------------------------------------------
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
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: How to use constant timer only once ?
Posted by Bruno Charloup <bc...@jouve.fr>.
Seb, Thanks for this answer
How to change the value of a variable in a test plan ? (I know how to define
it, but no how to change it)
-----Message d'origine-----
De : sebb [mailto:sebbaz@gmail.com]
Envoyé : vendredi 25 novembre 2005 17:17
À : JMeter Users List
Objet : Re: How to use constant timer only once ?
On 25/11/05, Bruno Charloup <bc...@jouve.fr> wrote:
> Hi all,
> I try to create a scenario with the following kind of sequence :
>
> http_request_1
> http_request_2 (with wait 10 secondes the 1st time (the 1st loop), and
> only
> 2 secondes next times)
> http_request_3
>
> Then I make the following thing :
> simple controller
> |- http_request_1
>
> simple controller
> |- only once controller
> | |- constant timer 8000
I think timers only get invoked if there is an associated sampler.
> |-constant timer 2000 (because 2000 + 8000 = 10 secondes)
> |- http_request_2
>
> simple controller
> |- http_request_3
>
> With such organisation, result is not as I expect ...
What do you get then?
> I don't know how to use If Controller (and if it is the right
> controller to
> use) : in the document an example is given with comparison to ${count}
> but I don't know how (where ?) to increase ${count} (in a loop controller
?) ...
>
You could try defining a variable to hold the wait time.
Set it in the test plan to 10 seconds.
Reset it to 2 seconds after the first sample (does not matter if it is reset
each time) - this will need to be done at a lower level than the main test
loop, e.g. as a child of the simple controller with http_request_3.
S.
---------------------------------------------------------------------
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: How to use constant timer only once ?
Posted by sebb <se...@gmail.com>.
On 25/11/05, Bruno Charloup <bc...@jouve.fr> wrote:
> Hi all,
> I try to create a scenario with the following kind of sequence :
>
> http_request_1
> http_request_2 (with wait 10 secondes the 1st time (the 1st loop), and only
> 2 secondes next times)
> http_request_3
>
> Then I make the following thing :
> simple controller
> |- http_request_1
>
> simple controller
> |- only once controller
> | |- constant timer 8000
I think timers only get invoked if there is an associated sampler.
> |-constant timer 2000 (because 2000 + 8000 = 10 secondes)
> |- http_request_2
>
> simple controller
> |- http_request_3
>
> With such organisation, result is not as I expect ...
What do you get then?
> I don't know how to use If Controller (and if it is the right controller to
> use) : in the document an example is given with comparison to ${count} but I
> don't know how (where ?) to increase ${count} (in a loop controller ?) ...
>
You could try defining a variable to hold the wait time.
Set it in the test plan to 10 seconds.
Reset it to 2 seconds after the first sample (does not matter if it is
reset each time) - this will need to be done at a lower level than the
main test loop, e.g. as a child of the simple controller with
http_request_3.
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org