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

  1. Create a test workbench project.
  2. In the Test Workbench perspective, in the Test Navigator, right-click the test workbench project and click New, and then click Compound Test.
  3. 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.
  4. 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.
  5. 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
  6. Save your changes.

Feedback