Bruno, just set  a second value to the same variable under the second request...

Best regards / Viele Grüße

Noam Paz




                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                           
             "Bruno Charloup" <[EMAIL PROTECTED]>                               
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                          
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                           
             25.11.2005 17:36                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                           To
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
       "'JMeter Users List'" <[email protected]>                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                           
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                           cc
                                                                                
                                                                                
                                     Please respond to                          
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                           
                                                                                
                                                                                
                   "JMeter Users List" <[email protected]>         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                      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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to