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

object types is used for what?

1 Answers  


Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?

1 Answers  


what is the automation framework that ur company using(actual procedure,not theoritically explination)

1 Answers  


WHAT IS ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


Explain xml checkpoints.

0 Answers  






what is Compile Module in QTP? what exactly it contains Functions or Actions?

1 Answers  


How do client side image and server side image work?

0 Answers  


Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If

1 Answers  


How we test web based application by using QTP

0 Answers  


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

1 Answers  


if anyone has idea of the interview procedure in covansys, plz send me a mail?

0 Answers  


Categories