If a error occur during the excution of QTP script. how can we get the name of the current object that cause the error

Questions by asha   answers by asha

Showing Answers 1 - 4 of 4 Answers

Hi

During Script execution when ever QTP encounters any error a popup window will be displayed.

And when u click on "Details" button it will display where exatly the error has been occured.

based upon that u can indentify the object.(if Active screen is enabled, u can view the object from where error was encountered)

  Was this answer useful?  Yes

siraz_babu

  • Apr 21st, 2008
 

Hi friends,

          When we haven't used OnErrorResumeNext statement in the script, When ever error occurs one popup message will be displayed with errror description. But when we use OnErrorResumeNext statement in the script ,When error occurs QTP will skip the that particular statement and continue from next line. To know that particular error use msgbox Err.Description to display error description and we can take screen shot of the particular window at the time of error using Capturebitmap statement.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions