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

i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1675


Did QTP prove efficient for your project? Yes or No, explain?

6222


Write a QTP script to enter a keyword in to Google search engine?

747


How to use Environment parameterization? Explain with an example.

1570


What is the difference between keyword view and expert view?

704






How is the Bitmap checkpoint different from Image checkpoint?

711


What is the descriptive programming?

1614


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1539


What is the latest version of qtp?

681


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

1451


when to start the automation?

1546


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

644


Differences between quicktest professional (qtp) and winrunner?

741


What are the types of object repository?

661


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2574