The JavaTest harness displays this tab only if your test suite uses keywords.
You can use keywords to restrict the set of tests to run in one of twwo ways, as follows:
You can also use the Configuration Editor window in Question Mode to specify
test run restrictions based on the keywords.
To specify the keywords and how they are used to restrict the tests in a test run, click Select tests that match. The JavaTest harness enables the Expression, Insert Operator, and Insert Keyword buttons.
Build an expression in the text field by using any logical combination of the following actions:
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 |