Running Tests

The JavaTest harness executes commands in the sequence that they appear in the command string. To run one or more tests in command mode, you must first initialize a configuration. See Initializing a Configuration.

After initializing a configuration, you can override specific values in the configuration before including the runtests command. See Setting Standard Values and Setting Test Suite Specific Values for commands that can be included to modify the initialized configuration. Batch files containing routinely used combinations of configuration settings or commands can also be included in the command string to modify the current configuration. See Using Batch Files.

You can use the runtests command to simply run the tests specified in the initialized configuration or as part of a series of commands, such as writing test reports and auditing test results. In this manner, you can include the runtests command in a sophisticated command sequence that resembles and functions much as a script. By running tests in command mode, you can use batch files and multiple commands in a single command string to programmatically perform repeated, multiple test runs using different configurations without using the JavaTest GUI.

The command format used in the following example is the single string arguments format. See Formatting a Command for descriptions and examples of the other command formats that you can use.

Example:

...;runtests;...