Adding tests into a compound test
After creating a compound test, you can add the smaller test components that contribute to the larger workflow you are constructing with the compound test. When you run a compound test, each of the tests added to it are run in the sequence defined.
About this task
You can add many tests of the same type or different types to a compound test, depending on
the testing requirements. In addition to the tests that you can add to a compound test, you can
also add the following elements to construct the workflow you need:
- Comments to document the test
- Delays in the test
- Synchronization points
- Loops
- Transaction folders
- Parts of the test that are mandatory
- Tests to be run in random order
Procedure
-
Double-click the compound test to which you want to add a test in the Test Navigator pane.
The contents of the compound test are displayed in the Compound Test Contents panel in the Compound Test editor.
-
Do one of the following:
- Click Add to add a test as the first element in the compound test.
- To insert a test before a specific element in the compound test, select the element and click Insert.
The Select Tests dialog is opened, and the tests found in the Eclipse Client workspace are displayed. -
Select the test you want to add to the compound test, and then click
OK.
The test is added to the compound test, and is displayed as part of the elements of the compound test in the Compound Test Contents panel. When you click the test you added, the details are displayed in the Compound Test Details panel in the Compound Test editor.
- Save the changes.