Interview Questions

How to Configure Winrunner Settings (2)

Introduction To WinRunner Basics


(Continued from previous question...)

How to Configure Winrunner Settings (2)


Enable date operations
This option Enables date operation functionality and displays the Tools > Date menu item. User must restart WinRunner for a change in this setting to take effect.

GUI map file mode sets the GUI map file mode in WinRunner.
Global GUI Map File—enables user to create a GUI map file for entire application.
GUI Map File per Test— enables WinRunner to automatically create a GUI map file for each test user creates. User must restart WinRunner for a change in this setting to take effect.


Load temporary GUI map file
Automatically loads the temporary GUI map file when starting WinRunner. This option is disabled when the GUI Map file per Test option is selected, as there are no temporary GUI map files when working with separate GUI map files for each test.

Keyboard file
This option designates the path of the keyboard definition file. This file specifies the language that appears in the test script when user type on the keyboard during recording.

Startup
General has a sub category Startup which contains options that control what happens when WinRunner opens. The different options available are:

Display Add-in Manager on startup
This option displays the Add-In Manager dialog box when starting WinRunner.

Hide Add-in Manager after ___ seconds
Specifies how many seconds the Add-in Manager remains open before it closes and automatically loads the same add-ins that were loaded in the previous WinRunner session.

Display Welcome screen on startup
This option displays the Welcome screen when starting WinRunner.

Startup test
This option specifies the location of the startup test. User can use a startup test to perform operations such as configuring recording, loading compiled modules, and loading GUI map files when starting WinRunner.

Folders
The different options available are:
Temporary files
This is the folder which contains the temporary test. User must restart WinRunner in order for the change to take effect.

Temporary GUI map file
This is the folder which the temporary GUI map file (temp.gui). If user select the Load Temporary GUI Map File check box. User must restart WinRunner in order for the change to take effect.


Shared checklists
This is the folder in which WinRunner stores shared checklists for GUI and database checkpoints. In the test script, shared checklist files are designated by SHARED_CL. user must restart WinRunner in order for the change to take effect.

Documentation files
This is the folder in which documentation files are stored.

Search path for called tests
The paths that WinRunner searches for files or tests specified with a relative path. If the user define search paths in this pane, user can specify relative paths when calling tests and specifying other file names. The order of the search paths in the list determines the order of locations in which WinRunner searches for a file or test specified using a relative path.

Record
In addition to the options in Record category, user can set additional recording options in the Selected Applications, Script Format, and Text Recognition sub-categories.
The different options available are:
Default recording mode
Determines the default recording mode—Context Sensitive or Analog. While the user the record the test, user can switch between recording modes.


Consider child windows
When selected, WinRunner recognizes any MSW_class window, or any object mapped to this class, as a parent object. When cleared, WinRunner recognizes only top-level windows and MDI frames as Parent objects.

Record Start menu by index
When this option is selected, WinRunner records the index IDs for each selected menu item.

Record keypad keys as special keys
This option determines how WinRunner records pressing keys on the numeric keyboard. If this option was selected WinRunner records pressing the NUM LOCK key. It also records pressing number keys and control keys on the numeric keypad as unique keys.

Record shifted keys as uppercase when CAPS LOCK on
This option determines whether WinRunner records pressing letter keys and the SHIFT key together as uppercase letters when CAPS LOCK is activated.

Record singleline edit fields as edit_set
Determines how WinRunner records typing a string in a single-line edit field. If selected only the net result of all keys pressed and released is recorded

Record nonunique list items by name
This option determines whether WinRunner records non-unique list box and combo box items by name (selected) or by index (cleared).

Record ownerdrawn buttons as
Since WinRunner cannot identify the class of owner-drawn buttons, it automatically maps them to the general Object class. This option enables user to map all owner-drawn buttons to a standard button class (push_button, radio_button, or check_button).

Maximum length of list item to record
This option defines the maximum number of characters that WinRunner can record in a list item name. The maximum length can be 1 to 253 characters.

Search radius
The radius from the specified point on a GUI object that WinRunner searches for the static text object that is its attached text. The radius can be 3 to 300 pixels.

Preferred search area
This option specifies the location on a GUI object from which WinRunner searches for its attached text.

Setting Selected Applications
The Selected Applications pane enables user to instruct WinRunner to record the operations on selected programs while ignoring operations on other programs.

Setting Script Format Options
The Script Format category contains options for controlling the appearance and readability of the script.

Setting Text Recognition Options
The Text Recognition category options affect how WinRunner recognizes text in the application.
The different options available are:
Use driver-based text recognition
This option uses the graphics driver to recognize text. This method generally yields the most reliable text results.

Timeout for Text Recognition
This option sets the maximum interval (in milliseconds) that WinRunner waits to recognize text when performing a text checkpoint using the driver-based text recognition method during a test run.

Use image-based text recognition
This option enables WinRunner to recognize text whose font is defined in a font group. Choose this option only if the driver-based text recognition method does not work.

Font group
This option sets the active font group for image text recognition.

Insert comment containing recognized text
When selected, WinRunner inserts text captured by a text checkpoint during test creation into the test script as a comment.

Run
In addition to the options in Run category, user can set additional recording options in the Settings, Synchronization, and Recovery subcategories. The different options available are:
Run in batch mode
This option determines whether WinRunner suppresses messages during a Verify test run so that a test can run unattended.

Write test results to a text report
This option instructs WinRunner to automatically write test results to a text report, called report.txt, which is saved in the results folder.

Allow other Mercury products to run tests remotely
This option enables other Mercury products to run WinRunner tests on the user computer from a remote machine.

(Continued on next question...)

Other Interview Questions