Specifying Tests to Run

You can use an existing configuration file and then specify the tests that are run (one or more individual tests or branches of tests).

When specifying tests for a test run, include the commands in the following sequence:

  1. Open the test suite (mytestsuite.ts)
  2. Open a work directory (myworkdir.wd)
  3. Open/initialize a configuration (myconfig.jti)
  4. Specify the tests (tests in branches api/javax_swing and api/java_awt)
  5. Include the runtests command.

The following text is a note
To run the following examples you must replace mytestsuite.ts, myworkdir.wd, and myconfig.jti with test suite, work directory, and .jti names that exist on your system. Win32 users must also change "/" file separators to "\" to run these examples.

Command Options Example:
java -jar [jt_dir/lib/]javatest.jar -batch -testsuite mytestsuite.ts -workdir myworkdir.wd -open myconfig.jti -tests api/javax_swing api/java_awt -runtests

Single String Arguments Example:
java -jar [jt_dir/lib/]javatest.jar -batch "testsuite mytestsuite.ts; workdir myworkdir.wd; open myconfig.jti; tests api/javax_swing api/java_awt; runtests"

The path used for setting the test or folder of tests to be run is the same as that displayed in the tree folder. One or more tests can be specified.