Requirement coverage

The tests in your test plan should meet your original requirements. Requirement coverage enables you to keep track of the relationship between your requirements and tests.

View coverage

You can view the requirements linked to a test.

To view requirement coverage:

  1. Open the test. Go to the Req Coverage tab.

  2. The requirement coverage grid shows the following information. You can click Select Columns to select displayed columns.

    Column Description
    Entity Name Name of the linked requirement. Click the hyperlink to open the linked requirement.
    Coverage Status

    Direct Cover Status of the requirement, that is the current status of the requirement, determined according to the status of the tests associated with the requirement.

    Coverage Type Type of the coverage.
    Coverage Mode

    Whether the requirement is covered by selected test configurations or all test configurations of the test.

    • All Configurations: If all test configurations of the test are linked to the requirement, the coverage mode is All Configurations.

    • Selected Configurations: If selected test configurations of the test are linked to the requirement, the coverage mode is Selected Configurations.

    Req: <requirement fields> Requirement details fields.
  3. To view the test configurations associated with requirement coverage, select the linked requirement, and at the bottom, expand the Test Configuration Settings section.

Add requirement coverage

Available for: Version 26.1 P1 and later

In the Test Plan module, you can add requirement coverage for a test by linking requirements to the test from the Req Coverage tab.

To add requirement coverage:

  1. In the Test Plan module, select the Test Plan Tree view.

  2. Select a test, and click the Req Coverage tab.

  3. Click Select to open the requirements tree.

  4. Select one or more requirements, and click the Add to Coverage button add requirement coverage to tests

    Select an option from the drop-down menu.

    Option Description
    Add to Coverage (Without Children)

    Adds the selected requirement without its child requirements to the coverage grid.

    When the test contains more than one test configuration, the Add Configuration Coverage dialog box opens, enabling you to select which configurations to add for the requirement coverage.

    Add to Coverage (Include Children)

    Adds the selected requirements, including their child requirements. The associated test configurations are added to the Test Configuration Settings pane.

    Only child requirements that match the current filter and that belong to a type that supports test coverage are added to the coverage.

  5. Expand the Test Configuration Settings section at the bottom of the screen to add or remove specific test configurations for the selected requirement coverage. By default, all test configurations of the test cover the selected requirements.

    • To remove a configuration, select the configuration and click the Remove Configuration buttonremove test configuration from coverage.

    • To add a configuration, click the Add Configuration button add test configurations to coverage, and select target configurations.

Tip: To view if a requirement is covered by all or only selected test configurations, click Select Columns and turn on Coverage Mode.

See also