Micro Focus QTP (UFT) Forums
How to continue test after it fails a step - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to continue test after it fails a step (/Thread-How-to-continue-test-after-it-fails-a-step)



How to continue test after it fails a step - sqadri - 01-18-2012

Hi,

Could someone please tell me how would I continue a test after it fails a step, I am using Reporter.ReportEvent.micFail when expected string or expected page does not exist.

Thank you,
Sqadri


RE: How to continue test after it fails a step - Arul - 01-19-2012

Hi,
any qtp run time error is thrown
oherwise based on ur scenario or loop.u can continue ur scripts
Regards,
Arul


RE: How to continue test after it fails a step - rajpes - 01-19-2012

Reporter.ReportEvent does not stop the execution.It will continue to run next statements in the script.

If you are getting some run time error, try using "on error resume next"


RE: How to continue test after it fails a step - Ankesh - 01-20-2012

Write 'On Error Resume Next at the start of ur function/script. This will bypass the error and continue with the next line of statement.


RE: How to continue test after it fails a step - sqadri - 01-20-2012

Arul and Ankesh,

Thank you for your help.
Sqadri