To edit keywords and keyword expressions in
the template, perform the following steps:
The JT harness displays this tab only if your test suite uses keywords.
See Keyword Expressions for descriptions and examples of keyword expressions that can be constructed.
The following table provides descriptions and examples of keyword expressions that can be constructed.
Expression | Description |
---|---|
Any Of |
Runs all tests in the test suite having any of the keywords entered in the text field.
Example:
A test suite uses the keyword
To execute only the tests containing the |
All Of |
Runs all tests in the test suite having all of the keywords entered in the text field.
Example:
To execute only the tests containing both the |
Expression |
Runs all tests in the test suite having the expression entered in the text field.
Use the Insert Keyword and the Insert Operator buttons to construct a Boolean expression in the text field. Keywords stand as Boolean predicates that are true if, and only if, the keyword is present in the test being considered. A test is accepted if the overall value of the expression is true. All other tests are rejected by the restriction. Example:
A test suite uses the keyword
To execute only the tests with the |
Logical operators are only available when Expression is selected in the list of expressions. The following table provides descriptions and examples of logical operators that can be used to build keyword expressions.
Logical Operator | Description |
---|---|
& and | Used to combine expressions.
Example:
The harness will only chose tests that include both keywords. |
| or |
Used to specify either two expressions.
Example:
The harness will only chose tests that include either keyword. |
! not | Used to exclude tests containing the expression.
Example:
The harness will exclude tests that include either keyword. |
( ) group | Used to create groups of expressions. Example:
The harness will exclude tests that include both keywords. |
Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.