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

Explain about business process component? types and usage?

0 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.

2 Answers   Banking,


Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples?

2 Answers   TCS,






How many types of parameters are there in QTP and what are they?

2 Answers  


Explain types of descriptive programming?

0 Answers  


Diff b/n image n bitmap checkpoints?

2 Answers   iGate,


Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri

5 Answers  


can anybody give me the links for vb script material

1 Answers  


What is the entry and exit point of automation testing

2 Answers   Infosys,


What is the difference between "call" and "callclose"

1 Answers   Polaris,


Categories