How to do excception handling ( error handling ) in QTP

Answers were Sorted based on User's Feedback



How to do excception handling ( error handling ) in QTP..

Answer / nanda

Generally we do the exception handling by using IF..Then
statement.

for example..

If Browser("XXXX").Window("Text:=XXXXX").Exist Then
Browser("XXXX").Window("Text:=XXXXX").Close
End If

Like this..

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    9 Yes 2 No

How to do excception handling ( error handling ) in QTP..

Answer / sdfs

In fact, we don't use recover scenarios much, we use them
very very rare.

We should write our own code to handle them.
Depends on the situation we should write
PopUPClose function etc.

Regards
Patil
Jai Ganesh Maharaj Ki...

Is This Answer Correct ?    5 Yes 1 No

How to do excception handling ( error handling ) in QTP..

Answer / qtp tester

Using Recovery Scenario method we can handle
unexpected /expected popups at run time.Always writing
<IF...Exist> condition code is not good.

Is This Answer Correct ?    4 Yes 1 No

How to do excception handling ( error handling ) in QTP..

Answer / hariknows

Using recovery scenarios, we can capture the error pop up
windows , and handle the errors and procced to next step
during the recording session.

Is This Answer Correct ?    8 Yes 6 No

How to do excception handling ( error handling ) in QTP..

Answer / anu

In middle of the coding means where that error foud after
that we r using on error go to EXIT

Is This Answer Correct ?    2 Yes 4 No

How to do excception handling ( error handling ) in QTP..

Answer / raja

Using recovery scenarios, we can capture the error pop up
windows , and handle the errors and procced to next step
during the recording session.

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More QTP Interview Questions

I need diffrences between Object Identification, Smart Identification, Regular expresion,Low-Level Recording (enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation.) I am working on Web Application. In that object caption will change dynamically. For example, consider “Save” button. On clicking save button the caption changing as “ EDIT ”. From above concept which concept I have to use here?

2 Answers   Ordain Solutions,


I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.

1 Answers  


How many actions we can create with in a test?

7 Answers  


what is stepin & stepout?

0 Answers  


what is the exact Diff. Between Test and Component in QTP?

1 Answers  


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


How to find the length of the string in qtp?

0 Answers  


how we will use output values in qtp? is there any possibulity by descriptive programming?

2 Answers  


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

4 Answers   CTS,


How to suppress warnings from the test results page?

0 Answers  


In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?

3 Answers   BirlaSoft,


How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,


Categories