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.

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 Batch Commands 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 sequenceEditing in Batch Commands

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

The next possible topic in the batch examples sequenceUsing a Batch File

Obtaining the Question tag-name

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