On 17/02/06, Milla Makelainen <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I have the following while loop in my test plan:
>
> - While (LAST)
>  +- HTTP Request
>  +- Constant Timer
>  +- Regex Extractor
>  +- Response Assertion (Pattern does NOT contain string)
>
> And it works, when the Response Assertion fails, the loop is exited and
> the test continues. However the failing of the Response Assertion is
> marked as an error in the results which is kind of annoying as it's
> after all not an error, it's change in conditions that make continuing
> the test possible. Have I done something wrong or is this how it's
> supposed to work?

This is how it is supposed to work - Assertions are used to flag
whether a sample result is as expected; i.e. has the sample succeeded
or failed?

The LAST condition was intended for stopping a part of a test when the
sample fails.

Rather than use an Assertion, why not use the Regex Extractor, and
then change the while condition so that it checks the appropriate
condition?

If you choose the RE default value to be "false", then you should just
be able to use the following condition:

${REGEXVAR}

where REGEXVAR is the variable you used for the RE.

You just need to make sure that REGEXVAR is not "false" intially.

S.

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

Reply via email to