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

Importing a compound test into a Test Workbench project

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

Procedure

  1. In the Test Workbench 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.

Feedback