Using Keywords (keywords)

The test suite may provide keywords that you can use on the command line to restrict the set of tests to be run. Use the keyword command to specify the keywords used to filter the tests that are run.

> javatest ... [initial set-up commands] ... -keywords expression ... [task command] ...

See About the Command-Line Examples for a description of the use of > javatest in the following example.

Refer to the test suite documentation for a list of supported keywords.

When creating a command string that specifies keywords, include the commands in the following sequence:

  1. Set up a configuration
  2. Specify keywords used (keywords expression)
  3. Include a Task Command such as runtests (optional).

See Command-Line Overview for a detailed description of the command line structure.

Detailed Example of keywords Command

In the following example, myconfig.jti and myexcludelist.jtx represent file names that might exist on your system.

Command Options Format Example:

> javatest -config myconfig.jti -keywords interactive -runtests

See Formatting a Command for descriptions and examples of other command formats that you can use.