You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tony <t....@verizon.net> on 2005/08/24 21:03:36 UTC

Proper syntax for checking string in conidtion of while loop

I have a test plan where I have a HTTP Request sampler within a while 
controller. The HTTP Request will get a response consisting of XML data 
from a Servlet. I use a regular expression extractor to extract some 
data from this response into a variable called "status". I want the 
while controller to continue processing until the status variable 
becomes "READY". So far I can't get this condition to work.

I try things like:

${status} != "READY"
"${status}" != "READY"
__javaScript( "${status}" != "READY")
__javaScript( "${status}" != "READY", dummy)

I still can't get the syntax correct... how does it work?

I can confirm I am extracting the correct data from the xml because I 
pass status as a variable on each HTTP request just to confirm that it's 
being set and it is.

Please help

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


Re: Proper syntax for checking string in conidtion of while loop

Posted by sebb <se...@gmail.com>.
See:

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

The 2.1 documentation has been updated to add a bit more detail.

S.
On 24/08/05, Tony <t....@verizon.net> wrote:
> I have a test plan where I have a HTTP Request sampler within a while
> controller. The HTTP Request will get a response consisting of XML data
> from a Servlet. I use a regular expression extractor to extract some
> data from this response into a variable called "status". I want the
> while controller to continue processing until the status variable
> becomes "READY". So far I can't get this condition to work.
> 
> I try things like:
> 
> ${status} != "READY"
> "${status}" != "READY"
> __javaScript( "${status}" != "READY")
> __javaScript( "${status}" != "READY", dummy)
> 
> I still can't get the syntax correct... how does it work?
> 
> I can confirm I am extracting the correct data from the xml because I
> pass status as a variable on each HTTP request just to confirm that it's
> being set and it is.
> 
> Please help
> 
> ---------------------------------------------------------------------
> 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