With the On Error Resume next it goes to the next line in level 3.
If I take away the On Error resume next, the script stops and shows the error box.
I can't win. What can I do? I want to handle the error and then get out of the action and go to For x = 1 to 5 line of code.
This is awful. I got trapped.
For x = 1 To 5
Call action x
On Error Resume Next
If err.number <> 0 Then
Another line of code is here in function level 3.
I found that going to settings/Run/When error occurs during run session:
Select proceed to next step.
It is like a global
On Error Resume Next.
I don't think that
On Error GoTo 0 will make the error pop up windows appear when using this choice.
My co-workers and predecessor put pass/fail variables into the functions. They go backwards through the function stack on a fail. I was hoping to avoid
Checking each function call for pass/fail. Maybe it is the only way to do this.
I wonder if HP knows about this issue. It is awful.
Has any one tried this in UFT?
I appreciate your link.
I am undecided between setting QTP so that it goes to the next step on a fail to make the EXITxxx functions work or use the bubble up code where the calling function looks at the success/fail of the "called" function.
Do I have another choice?
If it worked correctly, that is what it should do.
However many others and I have found that it does not always work.
One place that it does not work is in a function when a On Error Resume Next is in effect.