Micro Focus QTP (UFT) Forums
Do Until loop returning failure - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Do Until loop returning failure (/Thread-Do-Until-loop-returning-failure)



Do Until loop returning failure - mitch - 05-27-2011

Ok, I have this loop in my code:

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.