Running Tests in Batch Mode

Batch mode is used to automatically execute tests without starting the JavaTest GUI. By running tests in batch mode you can include the JavaTest harness as a part of a product build process.

Before running a JavaTest 3.0 test suite in batch mode, you must use the JavaTest Configuration Editor to prepare the configuration file. The JavaTest harness uses the interview file (.jti) created by the configuration editor to run a test suite.

The use of parameter files and the -params command-line option are deprecated in the JavaTest 3.x harness. However, if you are running an older test suite designed to use parameter (.jtp) files, you can continue using the -params command-line option to specify individual parameters used in the test run.

See -params param-options for more information about using command-line options to specify parameters.

To run the JavaTest harness in batch mode, use the -batch option in the command line:

java -jar javatest.jar -batch [options]

See Command-Line Options for more information about the options that can be included in the -batch command.