In command mode, you can include commands in any one of three formats:
When starting the JavaTest harness in command mode, you should make the writable directory where you intend to create files and store test results your current directory. In the command, include the path of the directory where the javatest.jar file is installed (represented as [jt_dir/] in the following examples). The javatest.jar file is usually installed in the TCK lib directory when the JavaTest harness bundled with a TCK.
See Index of Available Commands for a description of the commands that can be used.
If you are setting a limited number of options, you can use the command options format. In the command options format, the commands are preceded by "-," act as options, and do not use command terminators. Enclose complex command arguments in quotes.
Example:
java -jar [jt_dir/lib/]javatest.jar [harness-options] -batch -open default.jti -set host mymachine -runtests
If you are setting several command options, you can use the single string arguments format. In the single string arguments format, one or more commands and their arguments can be enclosed in quotes as a single string argument to the -batch option. Multiple commands and arguments in the string are separated by semicolons.
Example:
java -jar [jt_dir/lib/]javatest.jar [harness-options] -batch "open default.jti; set host mymachine; runtests"
If you are setting a series of commands and options, you can use the batch file format. Using a batch file allows you to easily reuse the same configuration.
In the batch file format, a file containing a series of commands and their arguments is included in the command line by preceding the file name with the "@" symbol.
Example:
java -jar [jt_dir/lib/]javatest.jar [harness-options] -batch -open default.jti @batchcmd.jtb
Refer to Using Batch File for detailed information about using and creating batch files.