Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to continue test after it fails a step
#1
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
Reply
#2
Hi,
any qtp run time error is thrown
oherwise based on ur scenario or loop.u can continue ur scripts
Regards,
Arul
Reply
#3
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"
Reply
#4
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.
Reply
#5
Arul and Ankesh,

Thank you for your help.
Sqadri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,560 02-28-2019, 11:46 AM
Last Post: naruoga
Exclamation SAPGuiUtil.Autologon method fails liorde 2 6,694 10-25-2015, 02:08 PM
Last Post: liorde
  QTP does not record the first step of open filight reservation application. Blossoms 9 19,404 07-20-2015, 05:50 PM
Last Post: AJAJ
  Test that works in QTP fails in QC msacks 0 2,446 12-24-2014, 12:11 AM
Last Post: msacks
  Test run cannot continue oak 1 5,395 11-03-2014, 10:54 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)