Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pause script with code
#1
Solved: 10 Years, 9 Months, 3 Weeks ago Exclamation 
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.
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!
Reply


Messages In This Thread
Pause script with code - by JRDew - 03-04-2011, 12:27 AM
RE: Pause script with code - by oleg8888 - 03-04-2011, 04:06 AM
RE: Pause script with code - by JRDew - 03-04-2011, 06:20 PM
RE: Pause script with code - by tdevick - 03-07-2011, 10:16 PM
RE: Pause script with code - by JRDew - 03-08-2011, 02:03 AM
RE: Pause script with code - by tdevick - 03-08-2011, 09:46 PM
RE: Pause script with code - by aardvax - 03-08-2011, 07:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB script Code. Tejas Tikhe 2 3,509 06-19-2012, 10:54 AM
Last Post: Tejas Tikhe
Rolleyes How to pause QTP script using DotNet Factory nistalaramesh 3 5,016 06-23-2011, 02:59 PM
Last Post: Saket
  Pause from QTP. logeshkumarvb 2 4,316 01-11-2011, 07:20 PM
Last Post: UFTEnthusiast
  need script to pause the test kumsweta 1 3,326 12-02-2008, 09:26 PM
Last Post: roxer

Forum Jump:


Users browsing this thread: 1 Guest(s)