Many times QTP throws “General Run Error” without any other details.It is always easy to debug if the system throws the appropriate error message.So how to get such error description?
QTP provides a Utility statement called DescribeResult to get the error description.
The syntax is DescribeResult(Error), argument is integer and return value is String
You can get the error number by Err.Number
So to see the description of the error,insert a watch like DescribeResult(Err.Number) in the debug pane or store it in a variable and analyze the error to fix the issue.
There are many such Utility Statement,to uncover more such utility statement go to
QuickTest Professional Help File–>QuickTest Object Model Reference –> Utility Objects –> Utility Statements