09-30-2010, 05:48 PM
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
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 !
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 !