Types of Recovery Operations in QTP in Testing

You can instruct Quick Test to recover from unexpected events and errors that occur in your testing environment during a run session. Recovery Scenario Manager provides a wizard that guides you through the process of defining a recovery scenario. The Recovery Scenario Manager Dialog Box provides the ability to create or edit recovery files and this dialog box creates and manages recovery scenarios.

The recovery scenario operations screen enables us to manage the collection of recovery operations in the recovery scenario. Recovery operations are operations that Quick Test performs sequentially when it recognizes the trigger event.

You can select the Recovery Scenario wizard through the link Resources > Recovery Scenario Manager.

select-recovery-manager.jpg

Select a type of recovery operation and click next. The next screen displayed in the wizard depends on which recovery operation type you select.

Recovery-operation-selection.jpg

You can define the following types of recovery operations:

"Keyboard or mouse operation": Quick Test simulates a click on a button in a window or a press of a keyboard key. Select this option and click next to continue to the "Recovery Operation - Click Button or Press" Screen.

Select-Default-Key.jpg

"Close application process": Quick Test closes specified processes. Select this option and click Next to continue to the "Recovery Operation - Click Button or Press" Screen.

Close-Application-Process.jpg

"Function call": Quick Test calls a VB Script function. Select this option and click Next to continue to the "Recovery Operation - Click Button or Press" Screen.

Function-Call.jpg

"Restart Microsoft Windows": Quick Test restarts Microsoft Windows. Select this option and click Next to continue to the "Recovery Operation - Click Button or Press" Screen.

Restart-Microsoft-Windows.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all