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

Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,


where the object repository is located?how to choose the object repository as shared or action object repositories?

4 Answers   Datamatics,


how we connect oracle or sql data server database to qtp

3 Answers   Tanla Solutions,


What is the extension of script and object repository files in QTP?

9 Answers  


What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

1 Answers   Bank Of America,






can we change the name of a check point? when will you start writing testcases? do you follow any methodology for writing test scripts? qtp is key word driven testing or data driven testing?

2 Answers  


I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail.?

1 Answers   TCS,


How can you close the second opened browser?

0 Answers  


what is the mediater between qtp and application/project in automation testing?

1 Answers  


Hi,i have 3 years of experience in manual and Automation qtp.present i am searching for job in automation qtp 2Yrs,How to Explain the interviwer Roles and Responsibilites.please help me.

1 Answers  


Explain measuring transaction.

0 Answers  


what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not

5 Answers   Syntel,


Categories