Creating a compound test
You can create compound tests to help you organize smaller tests into scenarios that can then be run end-to-end. You can combine tests from different extensions to achieve end-to-end flow.
Procedure
- Create a test workbench project.
- In the Web UI Test perspective, in the Test Navigator, right-click the test workbench project and click New, and then click Compound Test.
- In the New Compound Test dialog box,
specify the name of the compound test and the location where it must
be stored. By default, the test is stored in the workspace of the test workbench project
you selected. You can select a different project location if desired.
The file extension testsuite is added to the file name, and the new compound test is added to the Compound Tests folder of the test workbench project, visible in the Logical View. The new test is also visible in the Resource View, under the test workbench project. The contents and test element details are displayed in the compound test editor in the right panel.
-
In the compound test editor, add the components of the compound test.
The types of tests you can combine into a compound test depend on the testing requirements and on the components that you have licensed. For example, if you have the appropriate licenses, you can add Web UI tests, performance tests, mobile web tests, and functional tests into a compound test.
- To build the scenario you require in a compound test, you
can also add the following annotations by clicking Add and
selecting the appropriate option:
- Comments
- Synchronization points
- Loops
- Delays
- Transaction folders
- Tests that are mandatory, using the Finally blocks
- Tests to be run in random order, using the Random Selector
- Save your changes.