Using the Test Tree Popup Menu

The test tree provides a popup menu for each folder and test icon.

Test Tree popup menu
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:

  1. 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).
  2. 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.

  3. 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.

Refresh Test Suite Contents

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:

  1. Display the popup menu for a test. This is a platform specific operation (such as right clicking on a test icon).
  2. Choose Refresh from the popup menu.
  3. The JavaTest harness checks the time stamp of the file containing the test description.
  4. If the time stamp has changed, it compares the test descriptions.
  5. If the properties of the test descriptions are different, the JavaTest harness:

Refreshing a Folder

To refresh the contents of a folder:

  1. Display the popup menu for a folder. This is a platform specific operation (such as right clicking on a folder icon).
  2. Choose Refresh from the test tree popup menu.
  3. The JavaTest harness scans for new folders and tests. This operation may take place on any folder, including the root folder.
  4. The JavaTest harness checks the time stamps of the files in a folder.
  5. If a time stamp has changed, the JavaTest harness compares the test descriptions.
  6. If the properties of the test descriptions are different, the JavaTest harness:

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:

  1. Display the popup menu for a test. This is a platform specific operation (such as right clicking on a test icon).
  2. Choose Clear Results from the test tree popup menu.
  3. The JavaTest harness:

Clear Test Results in a Folder

To clear the test result in a folder:

  1. 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).
  2. Choose Clear Results from the test tree popup menu.
  3. The JavaTest harness:

The JavaTest harness does not display an error message if it is unable to delete a folder or file from the work directory.