You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by The_S <st...@de.soliver.com> on 2009/10/14 11:16:05 UTC

Loop over a sampler until return message equal to 'X'

Hi,

how could I loop over a sampler (WebService-Request), until the request
returns a specified value?

Example:

Step1: send request
Step2: if request equal to 'abc'
|--- throw an error and go to next sampler
Step3: else if request equal to 'xyz'
|--- success, go to next sampler
Step4: else
|--- wait 5 seconds and go to Step1 

thanking you in anticipation
-- 
View this message in context: http://www.nabble.com/Loop-over-a-sampler-until-return-message-equal-to-%27X%27-tp25887777p25887777.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: Loop over a sampler until return message equal to 'X'

Posted by The_S <st...@de.soliver.com>.
yes ... response, not request. Sorry!

I try it!
-- 
View this message in context: http://www.nabble.com/Loop-over-a-sampler-until-return-message-equal-to-%27X%27-tp25887777p25889938.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: Loop over a sampler until return message equal to 'X'

Posted by sebb <se...@gmail.com>.
On 14/10/2009, The_S <st...@de.soliver.com> wrote:
>
>  Hi,
>
>  how could I loop over a sampler (WebService-Request), until the request
>  returns a specified value?

Sounds like a job for the While Controller:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller

>  Example:
>
>  Step1: send request
>  Step2: if request equal to 'abc'
>  |--- throw an error and go to next sampler

If the request is wrong, why generate it in the first place?
Perhaps you meant "response", in which case:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion

>  Step3: else if request equal to 'xyz'
>  |--- success, go to next sampler
>  Step4: else
>  |--- wait 5 seconds and go to Step1

>  thanking you in anticipation
>
> --
>  View this message in context: http://www.nabble.com/Loop-over-a-sampler-until-return-message-equal-to-%27X%27-tp25887777p25887777.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