Creating a New Work Directory

You can open an existing work directory (as a template) and then use it to create a new work directory for the the test run before running tests.

When creating a new work directory for the test run, include the commands in the following sequence:

  1. Open the test suite (mytestsuite.ts)
  2. Open a work directory (myworkdir.wd)
  3. Create a new work directory (testrun.wd)
  4. Open/initialize a configuration (myconfig.jti)
  5. Include the runtests command.

The results of the test run are then written to the new work directory.

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 -create testrun.wd -open myconfig.jti -runtests

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

The JavaTest harness uses the work directory (testrun.wd) created by the command line when the tests are run, even if myconfig.jti was created using another work directory.