On 17/02/06, Milla Makelainen <[EMAIL PROTECTED]> wrote:
> From: sebb
> > 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?
>
> Gotcha.
>
> > Rather than use an Assertion, why not use the Regex Extractor, and
> > then change the while condition so that it checks the appropriate
> > condition?
>
> I tried using this first but I haven't been able to get it working the
> same way.
>
> > 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.
>
> So here's what I have. The while loop:
>
> Condition: ${_redirection_host}
>
> RE:
> Reference name: _redirection_host
> Regular Expression: REDIRECT:https://(.*)/g
> Template: $1$
> Match No: 1
> Default Value: false
>
> I know the RE works as I haven't changed it, but I don't know why the
> loop doesn't exit. As an additional complication I've actually got two

Works for me.

I just tried:

Thread Group
- Java Sampler
- While Controller: ${VAR}
- - Java Sampler
- - - RE using VAR with default false
- Listener

Are you sure that _redirection_host is being set correctly?

Try adding a Java Request to the while loop to report the value of the variable.

> possible exit conditions, one of them is the above redirection URL and
> other one is a page that is displayed in certain conditions. So I could
> add another RE for the other alternative and do OR - but I'd just like
> to get this one working first... You're help is much appreciated.
>

OR will need to be done using JavaScript or BeanShell functions -
remember that you want to generate the string "false" to cause the
While Controller to exit.

S.

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

Reply via email to