Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Error Details in QTP
#1
Not Solved
Hi All,
I have implemented error handling by descriptive programming in my driver script using

qtApp.Test.Settings.Run.OnError = "NextIteration"

I am calling every action to execute using "LoadandRunAction" function.

Now I want to get the error details like number, description of the error which will occur while executing the action so that I can use that details in my driver script to write a result in an excel..like the action is executed completly or not.

I tried using recovery scenario which will get triggred when there is any error. I called a function in that scenario to get the error detail like below

Code:
Function RecoveryScenario()
RecoveryScenario = Err.number
End Function

Called the above function in my driver script using

ErrNum = RecoveryScenario

But though there is an error while executing the an action the above funtion returns 0. Which means everything is fine and there is no error.

I am not able to capture the error details and use them in my driver script.

Thanks for the help in advance !
Reply


Messages In This Thread
Getting Error Details in QTP - by chetandahale - 09-30-2010, 05:48 PM
RE: Getting Error Details in QTP - by tdevick - 02-23-2011, 01:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find System details on which uft license is utilized Ccma 1 1,238 04-24-2018, 02:16 PM
Last Post: Ankur
  Runtime variables details amitmanekar91 0 2,264 03-07-2015, 08:27 PM
Last Post: amitmanekar91
  How to get the details of the current test instance from ALM HARINSUBRU 0 2,532 09-17-2014, 08:09 PM
Last Post: HARINSUBRU
  Details of Log tracking in qtp11 sowmya 0 4,139 01-25-2012, 01:43 PM
Last Post: sowmya

Forum Jump:


Users browsing this thread: 4 Guest(s)