The JavaTest harness does not display this tab if your test suite does not provide keywords. If you test suite does provide keywords, you can use the Keywords pane in the Standard Values view to restrict the set of tests to be run.
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, and Insert Operator buttons.
Because The keywords in a test suite are project specific, the JavaTest harness disables the Insert Keyword button if your test suite does not use keywords. When the Insert Keyword button is enabled, you can click it to display the list of the keywords you can use with the tests in the test suite.
The Insert Operator button displays a list of operators that you can choose from when constructing a boolean expression in the text field.
The following table describes the 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 "interactive" to identify tests that require human interaction, and "color" to identify tests that require a color display. To execute only the tests containing the "interactive" keyword, choose Any Of and then use the Insert Keyword button to choose the interactive keyword. |
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 "interactive" and "color" keywords, choose All Of and then use the Insert Keyword button to choose the interactive and color keyword. |
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 "interactive" to identify tests that require human interaction, and "color" to identify tests that require a color display. To execute only the tests with the "color" keyword that do not also contain the "interactive" keyword, choose Expression and then use the Insert Keyword button to choose the color keyword, the Insert Operator button to choose the ! operator, and the Insert Keyword button to choose the interactive keyword, |