Error generating report from requirements stereotyped using a profile

2 views (last 30 days)
I have created a simple profile SysReqProfile.xml that contains a stereotyped requirement called SystemRequirement based on Functional requirement. I have added a property to the stereotype.
I have applied the profile to a requirements model and created some requirements and used the SysReqProfile.SystemRequirement to specify the requirement type so that I can then specify the custom properties via the Stereotype Attributes section.
If, in the Requirements Editor, I use Export -> Generate Report... to generate a report (any format) I get an report generation error message stating ...
Specified requirement type name "SysReqProfile.SystemRequirement" is not found and the report generation fails.
How can I use the report generation features with requirements that use stereotypes defined in a profile?
If I set the requirement type back to Functional then the report generation works as expected.

Accepted Answer

Aneela
Aneela on 2 Jan 2025
I have attempted to replicate the issue you reported and did not encounter any errors during the process. Please consider the following approach for successful report generation:
  1. Open the Requirements Editor and create a new profile named "SysReqProfile". Within this profile define a new stereotype called "SystemRequirement".
  2. Save the profile in the Profile Editor. This step is crucial for ensuring that the profile is properly registered and recognized.
  3. Once the profile has been saved, import it into the Requirements Editor. This will facilitate the appearance of the new stereotype in the "Type" field of the requirements.
  4. Within the Requirements Editor, in the requirements model, create new requirements and assign the requirement type using the custom stereotype, "SysReqProfile.SystemRequirement.
  5. Save the requirements and generate the report by navigating to the "Export > Generate Report" section in the Requirments Editor.
Please refer to the following MathWorks documentation for more information on creating a profile and defining stereotypes: https://www.mathworks.com/help/slrequirements/ug/customize-requirements-and-links-by-using-stereotypes.html

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!