You can create compound tests to help you organize smaller
tests into scenarios that can then be run end-to-end. Each of the
smaller tests in a compound test can run on a different domain if
required, such as a mobile device, or a web browser, and so on.
Procedure
- Create a test workbench project.
- In the Test Workbench 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 capabilities you have purchased.
If you have purchased only mobile testing capabilities, you can combine
tests on mobile applications into a compound test. If you have purchased
additional testing capabilities along with mobile testing, you can
also combine tests built using Selenium, HTTP tests, Socket tests,
Citrix tests or SAP 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.