How to handle run time errors?

Answer Posted / nishant kumar

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

Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1644


Name the properties you would use for identifying a browser and page when using descriptive programming?

528


What does mean by Scope of Automation?n How we defined it?

1582


What are the different ways to invoke an application using QTP?

650


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1541






Explain quicktest professional testing process?

564


Can we create user defined functions in qtp?

562


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1758


Explain features of the latest version of qtp/ uft 12.1?

608


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1285


when to start the automation?

1480


How to call a test from another test?

686


What is the use of an object spy tool in qtp?

564


How qtp recognizes the object?

675


Explain the types of properties that quick test learns while recording?

564