You can use an existing work directory as a template to create a new work directory for the the test run.
When creating a new work directory for the test run, include the commands in the following sequence:
.ts).wd).wd).jti)runtestscommand.The results of the test run are then written to the new work directory.
If you routinely use a set of commands to initialize and modify a configuration (such as a configuration template), you can include these in a command file.
Refer to Using Command Files for detailed information about creating and using command files.
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.

If you run the following examples, replace mytestsuite.ts, myworkdir.wd, and myconfig.jti with test suite, work directory, and .jti names that exist on your system.
> javatest -testsuite mytestsuite.ts -workdir myworkdir.wd -create testrun.wd -open myconfig.jti -runtests
> javatest "testsuite mytestsuite.ts; workdir myworkdir.wd; create testrun.wd; open myconfig.jti; runtests"
> javatest @mycmd.jtb runtests
In addition to any other commands, the mycmd.jtbcommand
file must contain the following commands:
"
testsuite mytestsuite.ts; workdir myworkdir.wd; create testrun.wd; open myconfig.jti;"