Your example is rather confusing since you aren't using the 4test keywords...
Read about do, except, and raise in the Help.
Here is a sample pattern that I use often for variable timing stuff:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">int tries = 0
BOOLEAN success = FALSE
while (tries <= 10)
if (something that might work or crash)
(something that might crash)
success = TRUE
LogError ("..."</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">This way either the if statement or an exception will get you into the handler. If whatever isn't ready in 20 seconds, you get a failure.
Hopefully this helps explain do, except and raise.
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.