![winrunner test script winrunner test script](https://www.wisdomjobs.com/tutorials/test-script-and-displays-the-error-report.png)
WinRunner also saves all the expected and actual results of a test run in batch mode in one folder, and displays them in one Test Results window. In batch mode, WinRunner suppresses messages during a test run so that a test can run unattended. This option displays whether WinRunner is running in batch mode. Otherwise, WinRunner may not identify the GUI object. Note:When you run a test, you must use the same values for the attached text options that you used when you recorded the test.
![winrunner test script winrunner test script](https://image.slidesharecdn.com/winrunner-training-1194933554388643-5/95/winrunner-training-12-728.jpg)
You can also set this option using the Attached Text - Search radius box in the Record category of the General Options dialog box as described in “Setting Recording Options” This option specifies the radius from the specified location on a GUI object that WinRunner searches for the static text object that is its attached text. If backward compatibility is important, choose the Default setting. In previous versions of WinRunner, you could not set the preferred search area: WinRunner searched for attached text based on what is now the Default setting for the preferred search area. When you run a test, you must use the same values for the attached text options that you used when you recorded the test. You can also set this option using the Attached Text - Preferred search area box in the Record category of the General Options dialog box as described in “Setting Recording Options” You can use this option with the setvar and getvar functions. Note:All of the above possible values are text strings.
![winrunner test script winrunner test script](https://www.wisdomjobs.com/tutorials/previewing-a-quicktest-test.png)
This option specifies the location on a GUI object from which WinRunner searches for its attached text. If you can also use set or view the corresponding option from a dialog box, it is indicated below. This section describes the WinRunner testing options that can be used with the setvar and getvar functions from within a test script.