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
Select Option �� Next �� Enter Scenario Name �� Next �� run, Stop the Test Run]
��
Record required Recovery Operation [Click Save the scenario with
“.qrs” �� Finish ��
Click Run Save the library file �� ok, Click Cancel] take
the script 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
No comments:
Post a Comment