Adding a compound test to a Test Workbench project

You can create a compound test in a test workbench project. If you have an existing compound test, you can import the test to a test workbench project.

Creating a compound test in a test workbench project

You can create a compound test in a test workbench project.

Procedure

  1. Create a test workbench project.
  2. In the Web UI Test 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 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.

  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.

Importing a compound test into a Test Workbench project

You can import a compound test into a test workbench project.

Procedure

  1. In the Web UI Test perspective, in the Test Navigator, right-click the test workbench project into which you want to import the compound test and click Import.
  2. In the Import dialog box, expand General in the source list, select Import test assets with dependencies and then click Next.
  3. Specify the directory in which the compound test resides. Click Browse.
    By default, the compound test is imported into the test workbench project folder.
  4. The compound test assets in the folder you selected are displayed. Select the components you want to import.
  5. Click Finish.
    The imported compound test is displayed in the Compound Test Elements panel in the Compound Test editor.