Unified Functional Testing (formerly QTP) News and Support Forum
Showing results for 
Search instead for 
Do you mean 

Report Err.Description in Recovery Scenario

Occasional Contributor

Report Err.Description in Recovery Scenario

I have a recovery scenario that is invoked when an error occurs in my test.

Part of the recovery scenario calls a function.

Within the function I want to report the err.Description that is generated.


When I do this however, the function returns nothing.


The function called by the recovery scenario is below.


                 Function recover(Object, Method, Arguments, Result)

                      Msgbox Err.Number
                      Msgbox Err.Description

                 End Function

Can anyone advise how to do this.