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
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
what is meant by source control?
What are the types of object repositories? Which one is you using?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
banking project description for software tester
how to download mercury qtp9.2 ny internet ?
How many types of parameters are available in quicktest professional (qtp)?
hou can we use vb script in qtp could u tell me breafly
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
What is a programmatic description?
Hoe can we do retesting using functions please give the code for it using login page
• What type of testing questions will be asked for 2+ yrs exp people in interview?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
How to change the priorities of the recovery scenario properties?