Is it possible to log defects automatically for if a script fails while executing in QTP?
We are executing our scripts from HP QC.
Yes, pls search the QTP help with the below text, you would get all the necessary information
"Quality Center, reporting defects, automatically"
-- Here to Learn and share ---
You have a command/function for that.
I forgot to mention, this is not advisable, because without a complete analysis of the failure raising a defect may not be the right approach.
Ideal process should be to verify the failed scenario once manually and then once you confirm it is valid failure, a defect can be raised.