Setting Display Options - WinRunner

WinRunner’s display options let you control how test scripts appear in test windows, how different elements of test scripts are displayed, and how test scripts will appear when they are printed.

Customizing Test Scripts and Windows

You can customize the appearance of WinRunner’s test windows and how your scripts are displayed. For example, you can set the size of the test window margins, highlight script elements, and show or hide text symbols.

To customize the appearance of your script:

  1. Choose Tools > Editor Options. The Editor Options dialog box opens.

    To customize the appearance of your script

  2. Click the Options tab.
  3. Under the General options choose from the following options:

    To customize the appearance of your script

Highlighting Script Elements

WinRunner scripts contain many different elements, such as comments, strings, WinRunner reserved words, operators and numbers. Each element of a WinRunner script is displayed in a different color and style. You can create your own personalized color scheme and style for each script element. For example, all comments in your scripts could be displayed as italicized, blue letters on a yellow background.

To edit script elements:

  1. Choose Tools > Editor Options. The Editor Options dialog box opens.
  2. Click the Highlighting tab.
  3. To edit script elements
  4. Select a script element from the Element list.
  5. Choose from the following options:
  6. To edit script elements

    An example of each change you apply will be displayed in the pane at the bottom of the dialog box

  7. Click OK to apply the changes.

Reserved Words

WinRunner contains “reserved words,” which include the names of all TSL functions and language keywords, such as auto, break, char, close, continue, int, function. You can add your own reserved words in the [ct_KEYWORD_USER] section of the reserved_words.ini file, which is located in the dat folder in the WinRunner installation directory. Use a text editor, such as Notepad, to open the file. Note that after editing the list, you must restart WinRunner so that it will read from the updated list.

Customizing Print Options

You can set how the hard copy of your script will appear when it is sent to the printer. For example, your printed script can include line numbers, the name of the file, and the date it was printed.

To customize your print options:

  1. Choose Tools > Editor Options. The Editor Options dialog box opens.
  2. Click the Options tab.
  3. To customize your print options

  4. Choose from the following Print options:
  5. To customize your print options
  6. Click OK to apply the changes.

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

WinRunner Topics