qtp training session8-recoveryscenario

Upload: austinfru

Post on 14-Apr-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    1/17

    Quick Test Professional - QTPSession -8VeriTest, Chennai

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    2/17

    2

    Session-8: Agenda

    Recovery ScenarioRecovery Scenario Manager

    Creating a Recovery file

    Q & A

    Assignment

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    3/17

    3

    Recovery Scenario

    Recovery scenario enables you to specify how a test recoversfrom unexpected events and errors during a run session.

    Unexpected events, errors, and application crashes during a run

    session can disrupt your run session and distort results. This canbe handled by means of Recovery Scenario.

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    4/17

    4

    Recovery Scenario Manager

    The Recovery Scenario Manager provides a wizard that guides you through theprocess of defining a recovery scenarioa definition of an unexpected eventand the operation(s) necessary to recover the run session.

    A recovery scenario consists of the following:

    1. Trigger Event-The event that interrupts your run session.2. Recovery Operation-The operation(s) that need to be performed in order to

    continue running the test or component.For example, clicking an OKbutton in a pop-up window,

    3.Post-Recovery Test Run Option-The instructions on how QTP shouldproceed once the recovery operations have been performed

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    5/17

    5

    Creating a Recovery File

    To create a recovery file:

    1 Choose Resources > Recovery Scenario Manager. The Recovery ScenarioManager dialog box opens.

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    6/17

    6

    Creating a Recovery File Contd.

    Click on the New Scenario icon

    Recovery Scenario Wizard screen provides general information about the

    different options in the Recovery Scenario Wizard, and provides an overview

    of the stages involved in defining a recovery scenario

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    7/17

    7

    Creating a Recovery File Contd.

    ClickNext to continue to the Select Trigger Event screen.

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    8/17

    8

    Creating a Recovery File Contd.

    The Select Trigger Event screen enables you to define the event type thattriggers the recovery scenario, and the way in which QTP recognizes theevent.

    Select one trigger event: For example Pop up window and click onNext

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    9/17

    9

    Creating a Recovery File Contd.

    Specify Pop-up Window Conditions Screen

    Click the pointing hand and then click the pop-up window to capture thewindow title

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    10/17

    10

    Creating a Recovery File Contd.

    Recovery operations are operations that QTP performs sequentially when it

    recognizes the trigger event.

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    11/17

    11

    Creating a Recovery File Contd.

    Select a type of recovery operation and clickNext. The next screen displayedin the wizard depends on which recovery operation type you select.

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    12/17

    12

    Creating a Recovery File Contd.

    Select Keyboard or mouse operation

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    13/17

    13

    Creating a Recovery File Contd.

    Post-Recovery Test Run Options Screen Post-recovery test run optionsspecify how to continue the run session after QuickTest has identified the eventand performed all of the specified recovery operations

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    14/17

    14

    Creating a Recovery File Contd.

    Specify a Scenario name and description and click on Next

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    15/17

    15

    Creating a Recovery File Contd.

    Click on Finish button

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    16/17

  • 7/27/2019 QTP Training Session8-RecoveryScenario

    17/17

    17

    Creating a Recovery File Contd.