[Webtest] step located after failing step in <retry> doesnt' run

Paul King Paul King <paulk@asert.com.au>
Thu, 11 Oct 2007 07:06:06 +1000


Andrew Sickorsky wrote:
> Hello all!
> For some reason this:
> <retry maxcount="20" description="Find just created user in a user list">
>    <verifyText text="${user.name}"/>
>    <clickLink label="Next page"/>
>  </retry>
> never performs the step <clicklink> if <verifyText>  fails. Is this a 
> correct behavior?
> 
> Thanks in advance
> Andrew

Yes, you probably want to swap the order around (might require a little
change in your logic leading up to this). You often have <sleep> for
1 or more seconds inside the retry too - but likely not required here.

Cheers, Paul.