Create requirement coverage
The tests in your test plan should meet your original requirements. To keep track of the relationship between your requirements and tests, you add links between them by creating requirement coverage for tests.
Requirement coverage overview
In the Test Plan module, you create requirement coverage for a test by selecting requirements to link to the test. Requirement coverage assists you in assessing the impact of a change in the test or requirement. A test can cover more than one requirement.
Note: Alternatively, in the Requirements module, you create test coverage by linking tests to a requirement. A requirement can be covered by more than one test. For details, see Create test coverage.
Instead of covering each requirement only at the level of the test, you can cover a requirement by test configurations. A test configuration represents a specific use-case of a test. For example, a test configuration can specify a subset of data or a run-time environment that the test should use. Covering test configurations with requirements provides finer granularity for requirement coverage by enabling coverage by different use-cases of a test. For more details on test configurations, see Test configurations.
If you work with the Business Models module, you can link model entities to tests, either in the Test Plan module or in the Business Models module.
Business Process Testing: When creating coverage between requirements and business process tests, instead of covering each requirement only at the level of a test and/or its test configurations, you can also define coverage by a criterion. ALM creates a criterion for each business component and flow. You decide whether to include the criterion for calculating coverage. For more details on criteria, see
Note: You can link requirements and tests to defects. This can help you ensure compliance with your testing needs throughout the application management process. If a requirement changes, you can immediately identify which tests and defects are affected, and who is responsible. For details, see Defect Linkage.
Create requirement coverage
Create test and requirement coverage either by linking requirements to tests or by linking tests to requirements. Instead of covering each requirement only at the level of the test, you can cover a requirement by test configurations.
To link requirements to tests or test configurations:
-
In the Test Plan module, select the Test Plan Tree view.
-
Select a test, and click the Req Coverage tab.
-
Click Select Req to display the requirements tree in the right pane.
-
Select target requirements and click Add to Coverage . It includes the following options:
Option Description Add to Coverage (Without Children) Adds selected requirement without its child requirements to the coverage grid.
Alternatively, you can double-click the selected requirement or drag the selected requirement 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 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.
Business Process Testing: When adding requirement coverage to a business process test that contains criteria and test configurations, the Add Advanced Coverage dialog box opens, enabling you to select criteria and test configurations for the requirement coverage.
-
Select the test configurations that cover the selected requirements.
By default, all test configurations of the test cover the selected requirements. You can add or remove test configurations that cover a requirement.
To add or remove test configurations for requirement coverage:
-
Select the requirement in the requirement coverage grid.
-
In the Coverage Mode column of the gird, select Selected Configurations.
If the column is not shown, click Select Columns to show the column.
-
At the bottom of the requirement coverage grid, expand the Test Configuration panel.
-
To remove a configuration, select the configuration and click Remove Configuration .
To add a configuration, click Add Configuration , and select target configurations.
-
See also: