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

If the object property is changing very frequently, what was your approach?

2 Answers  


Thanks Rag... One more question, How we test the dynamic images which frequently changed?Using the bitmap checkpoint r any other options available.... Can u give the steps pls... Thanks

1 Answers  


What is dynamic arrays

1 Answers   Patni,


What is the limitation to XML Checkpoints?

4 Answers   CTS,


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,






Give the syntax to load function at run time.

0 Answers  


Hi, Can any one explain what is mean by Driver Script? is it AOM?

4 Answers   CTS,


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

0 Answers   TCS,


When i used this below script to insert value in the Datatable... At run time it was inserting the given value in the specified column, But after execution all those inserted values were cleared automatically... datatable("column name",sheetid)=value

1 Answers  


Write test cases for copy and past password in password field ?

0 Answers  


What are objects? how do you select the unknow object?

3 Answers  


How can we redirect QTP results in to a excel sheet after the execution

3 Answers   SAP Labs, Virtusa,


Categories