QTP Forums

Full Version: Do Until loop returning failure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, I have this loop in my code:

Do Until OracleFormWindow("Requests").OracleTextField("Phase").Verify("Completed")
Wait(5)
OracleFormWindow("Requests").OracleButton("Refresh Data").Click
Loop

This has always worked in the past, for some reason now, when the verification check is made and Phase does not equal "Completed", it returns a failure to QTP and the test fails. This has not happened before, and I'm not sure why this loop is causing a failure now?? I would expect it to loop until it matches... ?

Thanks again everyone.
Reference URL's