Lesson 8: Creating a compound test

You can learn about creating a compound test with multiple tests. Every individual test within the compound test performs a part of the main scenario. When you run the compound test, the individual tests are run in sequence.

Before you begin

You must have completed the following tasks:

About this task

For the test scenario in this tutorial, you can create a compound test that consists of the wiki-search test followed by the wiki-search-animals test.

Procedure

  1. Click File > New > Compound Test in the UI Test perspective.
    The Compound Test Name and Location dialog is displayed.
  2. Perform the following steps in the Compound Test Name and Location dialog:
    1. Select myProj as the parent folder.
    2. Enter WikiCompoundTest in the File name field, and then click Finish.
      The generated compound test is displayed in the test editor window.
  3. Click Add in the Compound Test Contents panel, and then click Test.
    Image of the Compound Test Contents panel

    The Select Tests dialog is displayed.
  4. Select the wiki-search and wiki-search-animals tests from the myProj folder, and then click OK.
    image of the Select Tests dialog

    The wiki-search and wiki-search-animals tests are displayed within the WikiCompoundTest test in the Compound Test Contents panel.
  5. Click File > Save to save the changes.
    Image of the Compound Test Contents panel

Results

You have learned to create a compound test with multiple tests.

What to do next

You can learn about adding a loop to a compound test so that the tests within the compound test run sequentially and repeatedly for a specified number of time. See Lesson 9: Adding a loop.