1. Can anyone help me with recovery scenarios, each type
with examples and also what is on error resume next?



1. Can anyone help me with recovery scenarios, each type with examples and also what is on error ..

Answer / ajay

While executing your scripts you may get some
UNEXPECTED/UNPREDICTABLE errors. (like printer out of
paper). To "recover" the test (and continue running) from
these unexpected errors you use Recovery Scenarios.
Types:
Trigger Event. The event that interrupts your run session.
For example, a window that may pop up on screen, or a QTP
run error.
Recovery Operations. The operations to perform to enable
QTP to continue running the test after the trigger event
interrupts the run session. For example, clicking an OK
button in a pop-up window, or restarting Microsoft Windows.
Post-Recovery Test Run Option. The instructions on how QTP
should proceed after the recovery operations have been
performed, and from which point in the test QTP should
continue, if at all. For example, you may want to restart a
test from the beginning, or skip a step entirely and
continue with the next step in the test.

On Erro resume Next:
If you can predict that a certain event may happen at a
specific point in your test or component, it is recommended
to handle that event directly within your test or component
by adding steps such as If statements or optional steps
or "on error resume next", rather than depending on a
recovery scenario. Using Recovery Scenarios may result in
unusually slow performance of your tests.They are designed
to handle a more generic set of unpredictable events which
CANNOT be handled programmatically.
For Example:
A recovery scenario can handle a printer error by clicking
the default button in the Printer Error message box.
You cannot handle this error directly in your test or
component, since you cannot know at what point the network
will return the printer error. You could try to handle this
event in your test or component by adding an If statement
immediately after the step that sent a file to the printer,
but if the network takes time to return the printer error,
your test or component may have progressed several steps
before the error is displayed. Therefore, for this type of
event, only a recovery scenario can handle it.
I would not go into details of how to create files and how
to define them since they are fully covered in QTP
Documentation. Mercury QuickTest Professional User's Guide
> Working with Advanced Testing Features > Defining and
Using Recovery Scenarios >

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Please give me the steps to carry out datadriven in QTP8.2

2 Answers  


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.

1 Answers  


Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


write a qtp script to verify that the business price is twice the economy price in flight reservation window

1 Answers  






Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

0 Answers  


Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  


How we can add actions in the test using QTP?

5 Answers  


Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer

3 Answers   IBM,


How to connect the real time application application with the QTP?

2 Answers  


How i can test the background color of the records displayed in a Table. Eg i have a .net desktop application and there is a Table(swftable) with records displayed in the grids. i have to validate whether the 1st record is displayed in white background color and 2nd record in light blue background color...But the constraints is that once user click on the first record...the background color changes to grey.......Plze let me now how to validate this with QTP 9.2.

9 Answers   Accenture,


When to use shared and local object repository?

0 Answers  


Categories