# Test Preferences – Post-Test

There are different actions that may be taken based on whether a test Passes or Fails, and whether the test is automatically stopped (i.e. the test has run for the set duration) or manually stopped by the user pressing the Stop button.

Auto Stop

Actions specific to automatically stopped tests are described below.

Option1: Stop Tests (Normal behavior)

This option will stop all the running tests and close all test windows. The Result window indicating a PASS or FAIL will be displayed. This is the normal default setting.

Option2: Stop Tests and print results

This option will stop all the running tests and close all test windows. The results will be sent to the default printer.

Option3: Run external application and exit

To help with the process of test automation it is possible to have BurnInTest run an external application, and exit automatically, after the tests have been completed. This could be used, for example, to call an application or batch file that would undertake a different type of testing (e.g. PassMark PerformanceTest) or customer specific reporting.

Option4: Exit and Reboot PC

This option is useful for reboot cycling testing. Once configured BurnInTest can be setup so that the PC will reboot itself in a cycle, with test runs occurring between each reboot. See the section on Reboot cycling for more details.

Manual Stop

Actions specific to manually stopped tests are described below.

Option1: Stop Tests (Normal behavior)

This option will stop all the running tests and close all test windows. This is the normal default setting.

Option2: Display option to run application

This option allows tests to be stopped prior to reaching the test duration, while maintaining a post test process that is consistent with the automatic stop actions (such as customer specific reporting). BurnInTest can display an option to the user asking whether they want to run the Post test application after a test run is manually stopped. If the user selects to run the external application, BurnInTest will exit after running the application. If the user selects not to run the external application, then BurnInTest will not exit.

Other Options

Always display result Window

By default, this option is unchecked, and the result window indicating PASS/FAIL is only displayed after the Auto Stop, Stop Tests option. The user may specify to display this result window for the other options (i.e. manually stopped tests, and running an external application). If this option is checked the result window will be displayed after any external application is run, and before exiting BurnInTest.

External Application

This specifies the application to be run if the appropriate option above is selected.

Syntax:

< Filename> <Parameter List>

Parameters:

< Filename >The name of the executable file. The file name must be enclosed in double quotes (“”). The file must be a batch or executable, and the “.bat” or “.exe” must be included.

< Parameter List >An optional list an parameters to be passed to the application. Each fixed parameter must be enclosed in quotations.

A number of variable parameters are supported. These parameters will be substituted with fixed strings enclosed in double quotes (“”). These are:

`$RESULT - “PASS” or “FAIL” will be substituted if the test is stopped automatically. If the test is manually stopped by the user, “PASS (manual abort)” or “FAIL (manual abort)” will be substituted.`

        $SERIAL – The serial number will be substituted.
        $MACHINETYPE – The machine type will be substituted.
        $NOTES – The notes will be substituted.

Examples:

#Set plug-in test application file with full path

c:\temp\cleanup.bat

c:\temp\cleanup.exe $RESULT $SERIAL $MACHINETYPE $NOTES

#Set plug-in test application file with path relative to BurnInTest drive

\temp\cleanup.exe

#Set plug-in test application file with path relative to BurnInTest application path

cleanup.exe

Reboot options

Selecting this button will open the “Passmark Rebooter” application to set the reboot configuration.