Using the Test Tree Popup Menu
The test tree provides a popup menu for each folder and test icon.
- Execute these tests
- Performs a "quick pick" execution of the folder or test.
- Refresh
- Performs an "on-demand" refresh scans for new folders, new tests and updated test
descriptions.
- Clear Results
- Performs an "on-demand" clearing of the contents of the selected folder, test, or entire work directory
Operations using the popup menu are not allowed when the JavaTest harness is running tests. The JavaTest harness displays an error dialog box if you attempt to perform an operation using the popup menu when tests are running.
"Quick Pick" Test Execution
You can use the Execute these tests menu item to run either a single test or all of the tests in a folder. However, multiple tests and multiple folders cannot be run using the popup menu.
To perform a "Quick Pick" test execution of a folder or test:
-
Display the popup menu for the folder or test. This is a platform specific operation (such as right clicking on the folder or test icon in the test tree).
-
Selecting a single test executes only that test.
-
Selecting a folder executes all tests currently known to the test manager in and below that folder.
-
Choose Execute these tests from the test tree popup menu.
Except for the initial tests setting, which is overridden by using the "Quick Pick" test tree selection, the JavaTest harness uses the current configuration to run the tests.
-
If the test manager does not contain a completed configuration interview, the JavaTest harness displays an advisory message and does not start the test run.
-
If the test manager contains a completed configuration interview, the JavaTest harness displays an advisory message to confirm the execute operation.
-
The JavaTest harness updates all icons and progress monitors during test execution, as it does during a normal test run.
The JavaTest harness does not automatically perform a refresh operation before running the tests. If changes have been made to a test suite, you must perform a refresh before running tests. See Refresh Test Suite Contents for a description of the refresh operation.
When developing tests, changes in a test suite are not automatically detected by the JavaTest harness. The first time tests are run, the JavaTest harness
uses the test finder to read test descriptions. If the harness loads tests
from an existing work directory, the test descriptions contained in those
results will be used by default.
The refresh operation allows test developers to load changes they may have
made in a test suite without restarting the JavaTest harness or reloading the
test suite.
The JavaTest harness does not require a work directory to perform a refresh of the test suite.
If you are viewing the test panel after refreshing a test or folder, you must choose a different test or folder icon and then repeat your test tree choice to update the test tree.
Refreshing a Single Test
To refresh the contents of a test:
-
Display the popup menu for a test. This is a platform specific operation (such as right clicking on a test icon).
-
Choose Refresh from the popup menu.
-
The JavaTest harness checks the time stamp of the file containing the test description.
-
If the time stamp has changed, it compares the test descriptions.
-
If the properties of the test descriptions are different, the JavaTest harness:
-
Removes the test result from the work directory and the test manager.
-
Loads a test containing the new test description into the test manager and displays it in the "not run" state.
Refreshing a Folder
To refresh the contents of a folder:
-
Display the popup menu for a folder. This is a platform specific operation (such as right clicking on a folder icon).
-
Choose Refresh from the test tree popup menu.
-
The JavaTest harness scans for new folders and tests. This operation may take place on any folder, including the root folder.
-
The JavaTest harness checks the time stamps of the files in a folder.
-
If a time stamp has changed, the JavaTest harness compares the test descriptions.
-
If the properties of the test descriptions are different, the JavaTest harness:
-
Removes the test result from the work directory and the test manager.
-
Loads the test containing the new test description into the test manager and displays it in the "not run" state.
Clear Previous Test Results
You can use the Clear Results menu item to remove existing test results for a single test or for all of the tests in and below a folder.
To clear test results, you must have an open work directory.
Clear a Single Test Result
To clear a test result:
-
Display the popup menu for a test. This is a platform specific operation (such as right clicking on a test icon).
-
Choose Clear Results from the test tree popup menu.
-
The JavaTest harness:
-
Removes the .jtr file from the work directory for that test.
-
Refreshes the test description for that test.
-
Displays the test in the "not run" state.
Clear Test Results in a Folder
To clear the test result in a folder:
-
Display the popup menu for a folder. This is a platform specific operation (such as right clicking on a folder icon in the test tree).
-
Choose Clear Results from the test tree popup menu.
-
The JavaTest harness:
-
Removes all .jtr files from the work directory for all tests in and below that folder.
-
Deletes all other files in and below the folder in the work directory.
-
Deletes all other directories corresponding to the folders in and below the folder in the work directory.
-
Displays the folder and its tests in the "not run" state.
The JavaTest harness does not display an error message if it is unable to delete a folder or file from the work directory.