Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to continue test after it fails a step
#1
Solved: 10 Years, 10 Months ago
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
Solved: 10 Years, 10 Months ago
Hi,
any qtp run time error is thrown
oherwise based on ur scenario or loop.u can continue ur scripts
Regards,
Arul
Reply
#3
Solved: 10 Years, 10 Months ago
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
Solved: 10 Years, 10 Months ago
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
Solved: 10 Years, 10 Months ago
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,038 02-28-2019, 11:46 AM
Last Post: naruoga
Exclamation SAPGuiUtil.Autologon method fails liorde 2 5,575 10-25-2015, 02:08 PM
Last Post: liorde
  QTP does not record the first step of open filight reservation application. Blossoms 9 17,386 07-20-2015, 05:50 PM
Last Post: AJAJ
  Test that works in QTP fails in QC msacks 0 1,937 12-24-2014, 12:11 AM
Last Post: msacks
  Test run cannot continue oak 1 4,669 11-03-2014, 10:54 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)