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. Open the UI Test perspective in Rational® Functional Tester, if it is not already open.
  2. Perform any of the following actions:
    • If you want to create the compound test as a new project, go to step 3.
    • If you want to create the compound test in an existing project, go to step 4.
  3. Go to File > New > Compound test.

    The New Compound Test window is displayed.

    You must perform the following steps:

    1. Click the Create the parent folder icon.

      The New Project pane is displayed.

    2. Enter a name for the project in the project name field.

      By default, the test is saved in the workspace location.

      Note: If you want, you can select a different location to save the project.

      Clear the Use default location option, and then click Browse to select a location to save the test.

    3. Click Next, and then select the types of assets you need in your project.
    4. Click Finish.

      A new project is created.

    5. Enter a name for the test in the File name field.
    6. Click Finish.
      Note: The file extension testsuite is added to the file name and the compound test is created under Compound Tests folder of the new project.

      To add the individual tests to the compound tests, go to step 5.

  4. Right click on the project from the Test Navigator pane and perform the following actions.
    1. Go to New > Compound test.

      The New Compound Test pane is displayed.

    2. Enter a file name for the test, and then click Finish.
    3. Click Finish.
      Note:

      The file extension testsuite is added to the file name and the compound test is created under Compound Tests folder of the selected project.

      To add individual tests to Compound Tests folder, go to step 5.

  5. Click Add in the Compound Test window, and then select Test.
    The Select Tests window is displayed with all the projects in workspace.
  6. Select the tests.
  7. Click OK.
    The tests are added to the compound test.
  8. Go to File > Save, to save the compound test.

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.