Recovery Scenarios in QTP

download Recovery Scenarios in QTP

of 2

Transcript of Recovery Scenarios in QTP

  • 7/30/2019 Recovery Scenarios in QTP

    1/2

    Recovery Scenarios in QTP

    Recovery Scenario Manager

    To recover from unexpected events and errors that are occurred in the test environmentduring 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 executableapplication->Next ->Select Recovery Operation [Keyboard, Mouse Operation,Close Application Process, function Call, Restart, Microsoft Windows] ->Next - >Ifyou want to check Add another operation else uncheck->Next - >Next - >EnterScenario Name ->Next- >Select Option - >Finish - >Close - >Save the scenario inspecified 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 PopupWindow as Trigger event ->Next - >Click on Hand Icon - >Show unwantedwindow with Hand icon ->Next - >Next - >Select function call as RecoveryOperation ->Next [Open Notepad - >Save empty file with .vbs extension] - >Browsethe .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 [Clickok, 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 Errorcan be raised.

    Navigation :

  • 7/30/2019 Recovery Scenarios in QTP

    2/2

    Resources Menu ->Recovery Scenario Manager - >New - >Next - >Select TestrunerrorWindow as Trigger event ->Next ->select any error o ->Next - >Next - >Select functioncall as RecoveryOperation ->Next [Open Notepad - >Save empty file with .vbs extension] ->Browsethe .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 testSelect 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 matchspecified 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 RecoveryOperation -> 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 testrun, Stop the Test Run] -> Next-> Enter Scenario Name -> Next -> Select Option ->

    Finish -> Save the scenario with .qrs -> Record required Recovery Operation [Clickok, Click Cancel] take the script into function -> Save the library file -> Click Run