How to log an error in QTP without aborting script?
runtime errors can be logged by using err object
If err.number<>0 then
Reporter.ReportEvent fail , "Run time error source " , Err.Source
Reporter.ReportEvent fail , "Run time error number " , Err.Number
Reporter.ReportEvent fail , "Run time error description" , Err.Description
Certified HP consultant
Thanks a alot.
A new way to do so also would be out soon http://knowledgeinbox.com/articles/q...debug-for-qtp/
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
I WANT IT NOW!!!!
It is still under development. But the good news is that now it supports a Code Trace window, a Debug print window, Allows stepping and debugging into code loaded a run-time.
Basically this would totally replace QTP IDE for debugging at run-time.