Question & Answer
Question
In IBM Rational Rhapsody Gateway Add-on (Gateway), how can you configure the default setting so that a compound requirement will be shown as "covered" in the coverage analysis report even if all of its sub-requirements are not satisfied?
Cause
The default rule used in Gateway to detect uncovered requirements is designed to treat a compound requirement as not-covered if all of its sub-requirements are not satisfied.
According to 'SysML specification v1.2', in order to make a compound requirement "covered", all of its sub-requirements have to be satisfied, and Gateway's default behavior match with the description.
"The default interpretation of a compound requirement, unless stated differently by the compound requirement itself, is that all its subrequirements must be satisfied for the compound requirement to be satisfied. Subrequirements can be accessed through the “nestedClassifier” property of a class. "
(Ref: Section 16.3.2.3)
Answer
Simply copy the attached file (rules.br) into the <project>_rpy folder (next to the <project>.rqtf file).
Then it will show the desired coverage after the UML Model document is reloaded.
The custom rule definition will be visible in Tool > Options > Project > Rules > Project Rules.
Note:
This customized rule is a simplified version of 'uncovered' rule defined in <Gateway>/config/otscript/3/rules_ibm.br. Additional line was added to meet the specific requirement as described above. Please use the attached file with a care since this file is provided as a sample and not formally tested.
Actual VS Desired Result:
Related Information
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21621829