Debugging general run error
So you got a General run error while running your code and are not sure on what to do?
What does General run error mean?
General run error occurs when an underlying source being accessed by QTP throws an error. QTP instead showing the error text shows a “General run error”.
A typical example would be the below line of code
Set oGeneralRunError = GetObject("X.Y.Z") |
Running the above code would generate a general run error. But running the same code in VBSript would generate the below error
So the actual error is Invalid Sytax and not the “General run error”. To look at the actual error in such a case, click on the Debug button and open the watch window. Type the below in the Watch window
DescribeResult(Err.Number) |
How to fix general run error ?
- If you are getting this error while working on a QTP test object, then put a Msgbox to check the existence object being worked upon
- In case of Web environment using DOM object methods could be of the solution
No Comments »
RSS feed for comments on this post. TrackBack URL
Leave a comment
You must be logged in to post a comment.


