Define test sets and run tests

The Test Lab tab of Web Runner enables you to define test sets, select tests to include in each test set, and run tests.

Create test set folders

To define a hierarchical framework for your test sets, create test set folders and then add test sets to each folder. You can create folders under the Root folder or an existing folder.

To create a new test set folder:

  1. Select the folder under which you want to create the new folder.

  2. Click New Folder (), and enter a name.

    Alternatively, hover over the folder and select More Actions > New Folder.

To create a test set folder by copy/cut:

  1. Select the folder you want to copy or cut.

  2. Click Copy () or Cut ().

    Alternatively, you can hover over the folder and select More Actions > Copy or Cut.

  3. Select the folder under which you want to add the new folder, and click Paste ().

    Alternatively, you can hover over the folder and select More Actions > Paste.

To rename a test set folder:

  1. Hover over the folder you want to rename, and select More Actions > Rename.

  2. Enter the new name.

To delete a test set folder:

  1. Select the folder you want to delete and click Delete.

    Alternatively, you can hover over the folder and select More Actions > Delete.

  2. In the confirmation dialog box, select one of the following options and click Yes.

    Delete folders only Deletes the folder and moves all test sets under the folder to the Unattached folder.
    Delete folders and test sets Deletes the test set folder, its sub-folders, and all test sets under the folders. All test scripts are also deleted from the file system.

Back to top

Create test sets

You can create test sets under existing test set folders, except the Unattached and Root folders.

To create a test set:

  1. Select the folder under which you want to create the test set.

  2. Click New Test Set ().

    Alternatively, you can hover over the folder and select More Actions > New Test Set.

    Tip: You can also create a test set by copying or cutting an existing test set. To copy or cut a test set, select the test set, click Copy or Cut, select the test set folder where you want to add the new test set, and click Paste.

  3. Enter all required information for the test set, and click Submit.

  4. In the Details tab of the test set, provide other relevant information.

  5. To add tests to the test set, in the Execution Grid tab, click Select Tests.

    In the Select Tests panel, select

    UI Element Description
    Select Tests

    Opens the Select Tests pane that enables you to select tests to add to the test set.

    • Add Tests to Test Set. Adds an instance of the selected test to the test set, including any test configurations associated with the selected test.

    • Add Test Configuration to Test Set. Adds a test instance that uses the selected test configuration to the test set.

    Filter

    Opens the Filter pane that enables you to filter test instances by specified field values.

    For details, see Filter dialog box (for Web Runner and Quality Insight).

    Select Columns Enables you to show or hide columns for the test instance table.
  6. In the Attachments tab, add attachments to the test set.

    To add an attachment to the test, select the Attachments tab, and click Add.

    To select multiple attachments, use the CTRL or SHIFT key.

Back to top

Run tests manually

When you run tests, the run status is automatically synchronized with ALM. After ending the test run, the test status is automatically synchronized with ALM.

To run a test manually:

Back to top

Run tests automatically

You can run test sets automatically.

Prerequisites:

Make sure your test machine meets the following requirements:

  • The TEA agent is installed. For details, see Test Execution Agent (TEA).

  • You can use the test machine.

  • The test machine supports running the type of tests you selected.

To start an automation test run:

  1. Open the Test Lab tab. From the test set tree, select the target test set.

  1. Start a test run.

    1. You can use the filter options at the top of the Test Sets tab to filter according to the test instance status.
    1. Select a test instance and click the Run Automation Test button .

      If you want to run all automation tests in a single test run, click Run All Automation Tests.

  1. End a test run.

    The test run ends automatically and the run status will be updated. You can click the status link to open the test run in ALM.

Back to top

Last Run Report

The Last Run Report shows the results of the last test run of the selected test instance, such as test steps, status, execution time, and step details.

To display the Last Run Report, in the Execution Grid tab, select a test instance. The Last Run Report is shown at the bottom.

Back to top

Link defects to test sets

You can link existing defects to a test set.

To link an existing defect to a test set:

  1. In the Test Lab tab, from the test sets tree, select the target test set.

  2. In the Linked Defects tab, click Link Existing Defect > By ID.

  3. Enter the defect ID and click Link. The defect must already exist in ALM.

    Click the defect's link to open it in the Defects tab.

Back to top

Track test set details changes

You can track the changes made to the details of a test set.

To track test set details changes:

  1. In the Test Lab tab, from the test set tree, select the target test set.

  2. Open the History tab. By default, it displays all the changes to the test details, grouped by change date and changer.

  3. To view changes made to a specific field, from the Field drop-down list, select the field.

Back to top

Keyboard shortcuts

To see the keyboard shortcuts supported for running tests, in the top right corner, click Settings > Keyboard Shortcuts.

Back to top

See also: