How can I implement error handling in QTP

Questions by sumanasateesh

Showing Answers 1 - 7 of 7 Answers

amitahujadelhi

  • Sep 13th, 2006
 

there are 3 kinds of errors that we can face :

(I)Generated by QTP

(II)Generated by Script

(III)Generated by AUT[Application under testing]/related environment 

and following given are the ways to handle these kind of errors :

(I)Through Scripting :

Error Resume Next
On Error GoTo 0

If Err.Number = 7 Then
Statements
End if

(II)Through defining a Recovery Scenario, according to the situation we want to handle

  Was this answer useful?  Yes

kabirkhan

  • Jan 8th, 2008
 

Some error like 'Dr. Watson ' error  comes at the time of test execution this is QTP
based error when QTP takes more time to open the script then such kind of error 
occures.  

  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