How to handle run time errors?

Answer Posted / barun choudhary

(a) On Error Resume Next : causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure.
Using "Err" object msgbox "Error no: " & " " & Err.Number & " " & Err.description & " " & Err.Source & Err.HelpContext

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to analyzing test results using quicktest professional?

785


Approach for Installation,comaptibility,system testing

1866


What is checkpoints for qtp?

678


How you calling actions in qtp?

777


How to use setroproperty?

713






How to break the object spy ?

809


What is difference in global and action sheet in qtp?

762


what is description object?

1748


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1791


what is object and child object.. explain ..if possible give some example for better understanding ..

1691


What is qtpro? What is quick test pro?

741


What are the 3 main stages involved in testing with qtp?

716


what is error and fault in terms of software quality?

1600


What is the default add-ins in qtp?

700


what is command for executing files?

1659