Test Cases per Requirement
Use this metric to count the number of tests linked to each requirement. The metric
analyzes only requirements where the Type is set to
Functional and that are linked to the unit with a link where the
Type is set to
test is linked to a requirement if it has a link where the Type is
Analyzes only requirements where the Type is set to
Functionaland that are linked to the unit with a link where the Type is set to
Counts links to tests in the project where the link type is set to
Verifies, including links to tests that test other models or subsystems. For each requirement that is linked to tests, check that the links are to tests that run on the unit that implements the requirement.
To collect data for this metric:
In the Model Testing Dashboard, click a metric in the section Tests per Requirement to display the results in a table.
getMetricswith the metric ID
Collecting data for this metric loads the model file and requires a Requirements Toolbox™ license.
For this metric, instances of
Value as an integer.