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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use reporter.report event in qtp ?

557


How to capture a window in QTP?

1526


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

3494


What are the various types of Actions in UFT?

591


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1524






I want to do QTP Certification what is the pattern of Question paper.

1744


how interviews will be on QTP?

1519


How to add synchronisation points in qtp?

577


how will load the object during runtime?

1581


How may types of defects identify application or your currently working application?pls give me answer..

1515


The hybrid framework can be implemented for any application. Is it true?

587


What is qtpro? What is a quick test professional?

583


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

529


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1281


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1657