How to handle Run-time errors?



How to handle Run-time errors?..

Answer / ramyab.mca@gmail.com

Hai....

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


K,Byeeee.....
Thanks & Regards
B.Ramyasri

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

How to connect to a database?

0 Answers  


In qtp, explain what is crypt object

0 Answers  


Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts?

2 Answers   Datamatics,


Can you tell me QTP is support for GIS(Geography Information System) Based Software.

1 Answers  


How many scripts did you have?

0 Answers  






suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro)

4 Answers   Fidelity, Wipro,


What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

1 Answers  


What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.

1 Answers   HCL,


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

0 Answers  


Explain the concept of object repository & how qtp recognizes objects?

0 Answers  


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

0 Answers  


If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script. Please send the answers...

5 Answers   NTT Data,


Categories