Creating a New Work Directory

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:

  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 runtestscommand.

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

Detailed Examples of Crating a 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.

The following text is a note
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.

Command Options Format Example:

> javatest -testsuite mytestsuite.ts -workdir myworkdir.wd -create testrun.wd -open myconfig.jti -runtests

Single String Arguments Format Example:

> javatest "testsuite mytestsuite.ts; workdir myworkdir.wd; create testrun.wd; open myconfig.jti; runtests"

Command File Example:

> 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;"