Examples of Batch Commands

This section provides examples of different types of batch commands. The commands used with -batch are a formatted set of commands, executed in the sequence that they appear in the command string. Include the path of the directory where the javatest.jar file is installed (represented as [jt_dir/] in the following example). The javatest.jar file is usually installed in the TCK lib directory when the JavaTest harness bundled with a TCK.

All batch command formats use combinations of commands in the following basic sequence:

Example:
java -jar [jt_dir/]javatest.jar [set harness options] -batch [initialize configuration] [set standard values] [set other configuration values] [perform task]

You can set configuration values by using a tag-name to value format. It is an error to set a configuration value in a batch command if the question tag-name is not found in the current interview path. To determine the current interview path, use the -path option.

See Obtaining the Question tag-name below for detailed information about the tag-name for the question.

See Formatting a Batch Command for a description of the different batch command formats that can be used.

The following sections provide different examples that you can use as patterns for creating batch commands:

The next possible topic in the batch examples sequenceEdit in Batch Mode

The next possible topic in the batch examples sequenceModify Settings in a Configuration

The next possible topic in the batch examples sequenceUsing Batch Files

Obtaining the Question tag-name

There are two ways to obtain a configuration question tag-name: