You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ori Marco <or...@praxell.com> on 2007/11/04 12:41:21 UTC
Found one of many text in response
Hi
How can you test if one of X texts is found in response?
Currently I can use response assertion for X texts to be found in
response but not if only one of them appears.
Example :
Send request and expect P1=100 or P5=200
Thanks
Ori Marko
Quality Assurance Engineer
Praxell Inc.
http://www.praxell.com <http://www.praxell.com>
Re: Found one of many text in response
Posted by sebb <se...@gmail.com>.
Use regex alternation, e.g.
P1=100|P5=200
On 04/11/2007, Ori Marco <or...@praxell.com> wrote:
> Hi
>
>
>
> How can you test if one of X texts is found in response?
>
> Currently I can use response assertion for X texts to be found in
> response but not if only one of them appears.
>
> Example :
>
> Send request and expect P1=100 or P5=200
>
>
>
> Thanks
>
>
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com <http://www.praxell.com>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org