Using Batch Mode

You can use the -batch mode option and its commands to configure and run one or more tests or branches of tests, write test reports, and audit test results either from the command line or as a part of a product build process. The commands used with -batch are a formatted set of commands, executed in the sequence that they appear in the command string. See Formatting Batch Commands for a description of the formats you can use.

You should use the commands in the command string much as you would if you were writing a script:

  1. Initialize a configuration. See Initializing a Configuration for detailed information.
  2. Modify the current configuration (if required). See Setting the Standard Values and Setting Other Configuration Values for detailed information.
  3. Specify the task performed. See Running Tests, Writing Reports, and Auditing Tests for detailed information.

See Specifying Additional Options for additional settings that can be used to start the JavaTest harness. If used, these options are included before the -batch option.

The topics in this section are:

The next possible topic in the batch mode sequenceFormatting Batch Commands

The next possible topic in the batch mode sequenceInitializing a Configuration

The next possible topic in the batch mode sequenceSetting the Standard Values

The next possible topic in the batch mode sequenceSetting Other Configuration Values

The next possible topic in the batch mode sequenceRunning Tests

The next possible topic in the batch mode sequenceWriting Reports

The next possible topic in the batch mode sequenceAuditing Tests

The next possible topic in the batch mode sequence Index of Available Batch Commands