Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to end action on error
#1
Not Solved
I have found the On Error Resume Next, which will disable those pesky popup error messages that stop automation, and even found Err.Source and Err.Description to get that information again.

My question is what do I do if I want the action to terminate in the event of any error? My tests are very dependent on everything going in order (I feel like lots of tests are like this) and I just want to get the first thing that caused the error and output that to a file, and then move on to the next action (which does not require proper execution of any previous actions).

Will just using the On Error Resume Next push it through all the way to the end of the action (since one thing fails multiple more will fail)? I don't want to deal with an array of 20 errors, as they will all be useless information. The only thing I want is the first error.

Any help would be great!
Reply


Messages In This Thread
How to end action on error - by adsherman - 07-12-2012, 02:26 AM
RE: How to end action on error - by Ankesh - 07-12-2012, 11:19 AM
RE: How to end action on error - by adsherman - 07-12-2012, 11:59 AM
RE: How to end action on error - by Ankesh - 07-12-2012, 02:38 PM
RE: How to end action on error - by adsherman - 07-12-2012, 03:37 PM
RE: How to end action on error - by Halemani - 07-13-2012, 04:13 PM
RE: How to end action on error - by adsherman - 07-28-2012, 02:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Expected End statement error Lavanya N 2 4,982 07-27-2015, 01:52 PM
Last Post: Lavanya N
  closing browser at end bistritapcv 3 5,754 04-12-2013, 07:21 AM
Last Post: basanth27
  action status in QTP test - main action vanilla 1 4,507 02-12-2012, 10:59 PM
Last Post: rajpes
  How to read an * at the end of a string sqadri 2 2,442 01-06-2012, 04:01 PM
Last Post: sshukla12
  Handle start and end of tests fafanoulele 0 2,363 09-14-2011, 03:04 PM
Last Post: fafanoulele

Forum Jump:


Users browsing this thread: 1 Guest(s)