P. 1
QTP Guide

QTP Guide

|Views: 1,087|Likes:
Published by rajeshtewari10

More info:

Published by: rajeshtewari10 on Oct 15, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/03/2012

pdf

text

original

Recovery Scenario Manager

To recover from unexpected events and errors that are occurred in the test environment
during run session, we can use Recovery Scenario Manager. For good recovery, error must
be known the occurrence is unknown.

There are (4) Types of events such as:

(i) Application Crash

An open application fails during Test Run.

Navigation:

Resources Menu -> Recovery Scenario Manager-> Click New- > Click Next - >
Select Application Crash as Trigger event->Next - >Select selected executable
application->Next ->Select Recovery Operation [Keyboard, Mouse Operation,
Close Application Process, function Call, Restart, Microsoft Windows] ->Next - >If
you want to check Add another operation else uncheck->Next - >Next - >Enter
Scenario Name ->Next- >Select Option - >Finish - >Close - >Save the scenario in
specified location with “.qrs”
(qrs stands for QuickTest Recovery Scenario.)

(ii) Popup Window.

To handle unwanted popups.

Navigation:

Resources Menu ->Recovery Scenario Manager ->New - >Next - >Select “Popup

Window” as Trigger event ->Next ->Click on Hand Icon - >Show unwanted
window with Hand icon ->Next ->Next - >Select function call as Recovery
Operation ->Next [Open Notepad ->Save empty file with .vbs extension] - >Browse
the .vbs fie path ->Next ->Uncheck Add another Recovery Operation - >Next - >
Select Post-Recovery Test Run Option [Repeat current step and continue, Proceed to
Next step, Proceed to Next Action, Proceed to next test iteration, Restart current test
run, Stop the Test Run] ->Next ->Enter Scenario Name ->Next - >Select Option - >
Finish ->Save the scenario with “.qrs” ->Record required Recovery Operation [Click
ok, Click Cancel] take the script into function ->Save the library file ->Click Run

(iii) Test Run Error.

A step in your test does not run successfully then Test Run Error
can be raised.

Navigation :

Resources Menu ->Recovery Scenario Manager ->New - >Next - >Select “Testrunerror
Window” as Trigger event ->Next ->select any error o - >Next - >Next - >Select function
call as Recovery
Operation ->Next [Open Notepad ->Save empty file with .vbs extension] ->Browse
the .vbs fie path ->Next ->Uncheck Add another Recovery Operation - >Next ->
Select Post-Recovery Test Run Option [Repeat current step and continue, Proceed to
Next step, Proceed to Next Action, Proceed to next test iteration, Restart current test
Next run, Stop the Test Run] �� Select Option �� Next �� Enter Scenario Name
�� ��
Save the scenario with Finish �� Record required Recovery Operation [Click “.qrs” ��
ok, Click Cancel] take the script Click Run Save the library file �� into function ��

(iv) Object State.

The property values of an object in your application match
specified values. You can specify property values for each object in the
hierarchy.

Navigation:

Resources Menu -> Recovery Scenario Manager -> New -> Next -> Select “Object state
Window” as Trigger event -> Next -> Click on Hand Icon -> Show object with hand icon
-> Next -> Next->select object property with value (enabled ,false)->click next -> Select
function call as Recovery
Operation -> Next [Open Notepad -> Save empty file with .vbs extension] -> Browse
the .vbs fie path -> Next -> Uncheck Add another Recovery Operation -> Next ->
Select Post-Recovery Test Run Option [Repeat current step and continue, Proceed to
Next step, Proceed to Next Action, Proceed to next test iteration, Restart current test
run, Stop the Test Run] -> Next-> Enter Scenario Name -> Next -> Select Option ->
Finish -> Save the scenario with “.qrs” -> Record required Recovery Operation [Click
ok, Click Cancel] take the script into function -> Save the library file -> Click Run

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->