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

what is the latest version of QTP? Main difference between 9.2 and 10 version

0 Answers  


What are Error handling other than Recovery scenario manager?

3 Answers  


I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?

1 Answers  


I am a beginner plz tell me,how do we write scripts in QTP? In my opinion we can write scipts in expert view or there is another option where we can write scripts. plz tell me.

5 Answers  


My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.

2 Answers  






How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

0 Answers   TCS,


What is the Automation Process followed in your company?

1 Answers  


how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script

2 Answers  


Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")

2 Answers  


can onyone tell me how to comapre the output of two different Data Bases in QTP?

1 Answers  


Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--

4 Answers  


Categories