On 02/12/2009, Carl Shaulis <[email protected]> wrote:
> Hello JMeter community,
>
>  I have a question regarding assertions for the samplers.  When I submit some
>  XML via jmeter I expect three different types of responses.  Can I set up
>  the assertions to be logical assertions rather than a single explicit
>  assert?
>
>  Assert ³ok² or assert ³no² or assert ³Stuff²
>
>  I would prefer to only use one sampler and assert that anyone of the above
>  three responses are present in the response data.  I could create three
>  thread groups and three sets of data targeting each type of response.  I
>  would prefer to send in random data and validate that one of these three
>  responses is present.
>
>  If I set up the test with a single assert for ³OK² my test passes since the
>  response data is OK.  If I add assertions for ³no² or ³stuff², then the OK
>  passes and the other two assertions fail.  I want the test to pass if it
>  finds anyone of the three values.

Try RE alternation, i.e.

OK|no|stuff

>  Any suggestions would be appreciated!
>
>
>  Carl
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to