Working with Recovery Scenarios Files - WinRunner

When you create, modify or delete recovery scenarios, the information is saved in the active recovery scenarios file. Each time WinRunner opens, it reads the information in the active file and includes the recovery scenarios that are defined in the file in the Recovery Manager. You can create multiple recovery scenarios files and then select different recovery scenarios files for different WinRunner sessions as needed.

Using the Recovery Manager for the First Time

In WinRunner, version 7.01 and earlier, all “exception handling” details were saved in the wrun.ini file. Therefore, the wrun.ini file is the default recovery scenarios file.

When you open the Recovery Manager for the first time, any exceptions defined in the wrun.ini file are displayed in the Simple tab of the Recovery Manager and they work as they did in previous versions of WinRunner. In order to create, modify, or delete recovery scenarios using the Recovery Manager, however, you must define a new recovery scenarios file.

You can enter a file name in the dialog that opens the first time you try to create, modify, or delete a recovery scenario.

Using the Recovery Manager for the First Time

Alternatively, you can define the new recovery scenarios file in the Run > Recovery category of the General Options dialog box before using the Recovery Manager for the first time.

If you enter a new file name, WinRunner creates the file and any exceptions information that was previously contained in the wrun.ini file is copied to the new file so that you can continue to work with your existing exception handling definitions using the Recovery Manager.

Choosing the Active Recovery Scenarios File

You select the active recovery scenarios file in Run > Recovery category in the General Options dialog box. You can select an existing file or enter a new file name.

When you enter a new file name and confirm that you want WinRunner to create the new file, WinRunner copies all recovery scenario information from the current recovery scenarios file to the new file.

When you enter the name of an existing recovery scenarios file, WinRunner sets the selected file as the active recovery scenarios file, but does not copy any information from the previous recovery scenarios file.

To select an active recovery scenarios file

  1. Choose Tools > General Options.
  2. Click the Run > Recovery category. The Recovery options pane is displayed.

    To select an active recovery scenarios file

  3. In the Recovery scenarios file box, type the path of the file you want to use (or create), or click browse to select an existing recovery scenarios file.

Choosing the Recovery Compiled Module

The recovery compiled module is a special compiled module that is always loaded when WinRunner opens so that the functions it contains can be accessed whenever WinRunner performs a recovery scenario.

You can instruct WinRunner to save the functions you define in the Define Recovery Function or Define Post-Recovery Function dialog boxes directly to the recovery compiled module while creating or editing a recovery scenario. You can also open the recovery compiled module and add functions to the compiled module manually.

To select an active recovery scenarios file

  1. Choose Tools > General Options.
  2. Click the Run > Recovery category. The Recovery options pane is displayed.
  3. To select an active recovery scenarios file

  4. In the Recovery compiled module box, type the path of the compiled module you want to use (or create), or click browse to select an existing compiled module. If you enter a new file name, WinRunner creates a new compiled module.

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

WinRunner Topics