Saturday, June 26, 2010

QTP : General Run Error

QTP : General Run Error

Recently, i have faced this Error while i was running my QTP code.
I had to really waste my time to debug what went wrong...but could not find it as QTP was only
throwing "General Run Error".
After much time spent on checking code line by line , found that it is due to a variable declared and used twice at different points in function libraries, and loaded at runtime with different values.

Hope you find this info useful.

WorkAround: Checkout if any variable is used twice at different lines of your code.
Recommendation: Use Option Explicit which will mandate you to declare variable declarations in your code snippets.

No comments:

Post a Comment