Please explain me in detail! How to handle runtime errors
in QTP useing recovery senario or with out scenario

Answers were Sorted based on User's Feedback



Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with o..

Answer / sathish reddy

Hi friends


We can also Stop the error by using below lines

MsgBox ("Error # " & CStr(Err.Number) & " " &
Err.Description)'this lines given the error number and
Description

Err.Clear 'this will clear the Error

Is This Answer Correct ?    4 Yes 0 No

Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with o..

Answer / nanda

Let me explain with out recovery scenario,

we can handle exeptions like pop windows by using IF
ELSE statements.

for example..

if window("XXXX").dialog("XXXX").exist then

window("XXXX").dialog("XXXX").winbutton("text:=XXXX").click
window(("XXXX)).winbutton("XXXX").click
else
<put remaining script here>

end if

and also by using methods like "on error resume next,
err.number, err.raise, err.information" methods.

if any queries on this..

nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 2 No

Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with o..

Answer / sesha sai shivanaresh

There are 4 trigger events during which a recovery scenario
should be activated. They are
A pop up window appears in an opened application during the
test run.
A property of an object changes its state or value.
A step in the test does not run successfully.
An open application fails during the test run.
These triggers are considered as exceptions and more
details regarding how to use Recovery Manager is given in
the QTP User Guide. Since there is hardly any space to put
up snapshots

Is This Answer Correct ?    3 Yes 2 No

Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with o..

Answer / pramod mallick

and also...

If any un-expected popup window appears
Then we can close all popup windows by using kill process
by window name. There is a QTP Utility function to kill the
window by process. We can use this also.

Is This Answer Correct ?    1 Yes 1 No

Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with o..

Answer / nani

Good Naresh Keep it on.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

What are the parameters provided by QTP?

3 Answers   Ordain Solutions,


What is a programmatic description?

0 Answers  


where exactly we can't do the automation testing. give some examples

2 Answers   Virtusa, Wipro,


I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

0 Answers   RBS,


How to call .vbs functions in QTP? plz Explain indetail

4 Answers   Wipro,






What is the Automation Process followed in your company?

1 Answers  


What is wrong in my code?

3 Answers  


What is quicktest professional (qtp window?

0 Answers  


What r the different type of reports generated in Quality Center?

1 Answers   TCS,


WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?

1 Answers   CTS,


How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large

2 Answers  


how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


Categories