Managing Recovery Scenarios - WinRunner

Once you have created recovery scenarios, you can use the Recovery Manager to manage them. The Recovery Manager enables you to:

  • View a summary of each recovery scenario
  • Modify existing recovery scenarios using the Recovery wizard
  • Activate or Deactivate existing recovery scenarios
  • Delete Recovery scenarios

If you use crash recovery scenarios, you can also modify the string that WinRunner uses to identify crash windows.

Viewing Recovery Scenario Details

The Recovery Scenario Summary dialog box displays the details of the selected recovery scenario, and enables you to easily modify the Activate by default setting.

To open the Recovery Scenario Summary dialog box:

  1. Select a recovery scenario in the Simple or Compound tab of the Recovery Manager dialog box, and click Summary, or double-click the recovery scenario name. The (Simple or Compound) Recovery Scenario Summary dialog box opens.
  2. To open the Recovery Scenario Summary dialog box

  3. Review the settings for the recovery scenario.
  4. Select or clear the Activate by default check box if you want to modify the setting.

Modifying Recovery Scenarios

You can use the Modify option of the Recovery wizard to modify the details of an existing recovery scenario.

To modify a recovery scenario:

  1. Select the recovery scenario you want to modify from the Recovery Manager dialog box and click Modify.
  2. The Recovery wizard opens to the Scenario Name screen.
  3. Navigate through the Recovery wizard and modify the details as needed.

Deleting Recovery Scenarios

You can use the Delete option of the Recovery wizard to delete an existing recovery scenario. When you delete a recovery scenario from the Recovery Manager, the corresponding information is deleted from the recovery scenarios file.

To delete a recovery scenario:

Select the recovery scenario you want to delete from the Recovery Manager dialog box and click Delete.

Activating and Deactivating Recovery Scenarios

WinRunner only identifies exception events and performs recovery operations for active recovery scenarios. You can activate or deactivate a recovery scenario in several ways:

  • Select or clear the Activate by default check box when you create a recovery scenario.
  • Toggle (single-click) the activation check box next to the recovery scenario name in the Recovery Manager to temporarily activate or deactivate a recovery scenario. (The setting in the activate by default option resets the recovery scenario to its active or inactive state each time WinRunner opens.)

    Activating and Deactivating Recovery Scenarios

  • Select a recovery scenario in the Recovery Manager and click Summary or double-click the recovery scenario to open the Recovery Scenario Summary dialog box, and select or clear the Activate by default check box.
  • Select a recovery scenario in the Recovery Manager, click Modify to open the Recovery wizard, navigate to the Finished screen and select or clear the Activate by default check box.
  • Activate a recovery scenario during the test run using TSL commands.

Modifying the Crash Event Window Name

WinRunner identifies a crash event when a window opens whose title bar contains the string indicating an application crash. You can modify the string that WinRunner uses to identify crash windows in the excp_str.ini file located in the WinRunner installation folder>dat folder.

The excp_str.ini file is composed of sections for various Windows languages, plus a default section for unlisted languages. WinRunner uses the string corresponding to your Windows language to identify a crash event.

To modify the crash event window name, modify the window name listed in the section corresponding to the Windows language you are using. The language sections in the excp_str.ini file are identified by the three letter LOCALE_SABBREVLANGNAME code.

If your Windows language is not listed, enter the crash event string you want to use in the [DEF] section. Alternatively, add a new section to the file using the three letter LOCALE_SABBREVLANGNAME for your Windows Language as the section divider, and enter the crash event string below it in quotes ("string").

The table below lists each of the codes contained in the excp_str.ini by default and the corresponding Windows language. For the complete list of language codes, refer to MSDN documentation.

Modifying the Crash Event Window Name


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics