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:
mytestsuite.ts)
myworkdir.wd)
testrun.wd)
myconfig.jti)
runtests command.
The results of the test run are then written to the new work directory.
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.