03-04-2011, 12:27 AM
I know this has been discussed in other posts but I haven't found what I am looking for.
I have a recovery scenario that calls a function on any run error. This function send out an email and displays a message box with error details. Problem is, when I click ok on the message box the test takes off again. I want the test to pause so I can see what caused the error.
I have tried using Stop, but that only works inside a test, it is ignored if in a function. I have also tried the below code, which works inside a test but errors when in a function.
I would like to learn how to do 1 of the 2 options below.
Pause a test or insert a breakpoint with code.
Or
Call a recovery scenario and then once the function completes, still get the QTP Run Error message box which would then let me click Debug.
I have been working on this for a long time.
Thanks in Advance!
I have a recovery scenario that calls a function on any run error. This function send out an email and displays a message box with error details. Problem is, when I click ok on the message box the test takes off again. I want the test to pause so I can see what caused the error.
I have tried using Stop, but that only works inside a test, it is ignored if in a function. I have also tried the below code, which works inside a test but errors when in a function.
Code:
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Test.Pause
I would like to learn how to do 1 of the 2 options below.
Pause a test or insert a breakpoint with code.
Or
Call a recovery scenario and then once the function completes, still get the QTP Run Error message box which would then let me click Debug.
I have been working on this for a long time.
Thanks in Advance!