track changes to requirement links
after you author or import requirements and create links between design elements and your requirements, requirements toolbox™ tracks the links and detects when linked requirements change. you can track change information from the or in the traceability matrix and, then resolve change issues or clear changes that have no impact on the requirement status.
enable change tracking for requirement links
to enable change tracking for requirement links:
open the requirements editor. from your simulink® model, in the apps tab, click requirements manager. in the requirements tab, click requirements editor. alternatively, enter this command at the matlab® command prompt.
slreq.editor
open a requirement set.
on the view tab under information , select change information.
once you enable change information, this setting stays enabled even after you close the requirements editor.
alternatively, you can enable change tracking for requirement links from the requirements perspective. right-click an item in the requirements perspective and select change information.
run change tracking analysis
requirements toolbox does not perform change tracking analysis until you run the analysis. you can run the analysis in the requirements editor or requirements perspective.
a banner in the requirements editor or requirements perspective indicates when results are pending. to run the analysis, click analyze now in the banner. alternatively, click refresh in the requirements editor or the refresh button in the requirements perspective.
change tracking analysis continuously runs in the background until you use .
review changes to requirements, test objects, and matlab code lines
after you run change tracking analysis, you can use the requirements editor to review the changes.
review changes to requirements
you can link requirements to other types of items. for a full list of linkable items, see linkable items. when you change linked requirement, the requirements editor and traceability matrix window and show a change issue. after you enable change tracking for requirements links, you can view the change issues associated with a particular requirement from the requirements editor or the traceability matrix window.
note
requirements toolbox provides change tracking information for unresolved links only if the linked requirement is valid. for more information on why a link might become unresolved, see .
in the requirements editor, click show requirements. the linked requirements with changes are highlighted in red. when you select a requirement, the associated link is also highlighted in red in the right pane, under links. to view the change issue, select a requirement and, under links, point to the link, then click the link icon () to the right of the linked item.
in the traceability matrix window, under highlight missing links click highlight changed links to highlight the row, column, and cell associated with the linked requirement. to view changes to the linked requirement, select the cell and, in the dialog box that appears, click the requirement hyperlink next to source or destination. to view the change issue, click the link hyperlink next to link. to learn more about using the traceability matrix window to find change issues, see .
review changes to test objects
to create links between requirements and test objects, see link test cases to requirements. when you change simulink test™ test objects, the requirements editor and traceability matrix window highlight the link to indicate that the source object has changed.
in the requirements editor, click show requirements. the linked requirements show the change issues related to the source of the links. the editor indicates linked requirements that have change issues with the change issue icon.
when you link a test case to a requirement, the associated link is highlighted in red in the right pane, under the links section. to view the change issue, select the link, then click change information.
you can clear the change issues for test cases from the requirements editor or the traceability matrix by.
compare requirement sets or link sets files: you can compare the two versions with and without the changes..
clear issues in the requirements editor: if a change has no impact, you can clear the change issue. if the change issue affects requirements or test cases, first resolve the discrepancy, then clear the issue.
clear issues using the traceability matrix window: in the traceability matrix, click highlight missing links > highlight changed links to highlight the row, column, and cell associated with the changed requirement. from the filter panel, select change tracking > with change issues to filter the test cases that have changed.
review changes to matlab code lines
when you change matlab code lines ormatlab function block, the requirements editor and traceability matrix window highlight the link to indicate that the source object has changed.
in the requirements editor, select show requirements from the requirements pane. the linked requirements show the change issues related to the source of the links. the editor indicates linked requirements that have change issues with the change issue icon .
for more information on linking the requirements to matlab code, see verify requirements with matlab tests. you can view the change issue in the matlab code when you:
add or remove lines.
insert or remove text from the existing lines.
in the requirements view, you can see the highlighted link in the links section along with the change icon on the requirement in the requirement tree.
to view the change issue, click the icon in the links section. this directs you to the section of code with the changes. to clear the change issue, click the links in links view and select clear issue under change information.
matlab code lines within matlab function blocks in simulink models are also tracked for change issues.
resolve change issues
the requirements editor displays change information, including change issues, for each link. click show links and, in the right pane, expand change information. requirements toolbox compares the stored timestamp and revision to the current timestamp and revision for the linked artifact. if you change the source or the requirement after you create the link, or after the last time you changed it, then the requirements editor indicates a change issue.
you can resolve change issues from the requirements editor or the traceability matrix. if a change has no impact, you can clear the change issue. the link change information is updated with the current timestamp and revision for the requirement. if the change issue affects the status of your requirements, you can change the model, the requirements, the test cases, or the links themselves to resolve the revision discrepancy, and then clear the issue.
in the requirements editor, links with change issues are highlighted in red when you select show links. to clear a change issue, select the link and, in the right pane, under change information, click clear issue.
in the traceability matrix, you can highlight links with change issues by selecting highlight missing links > highlight changed links. to clear the change issue, select the cell containing the link and, in the toolstrip, click clear change issue.
clear change issues for multiple links
you can clear change issues for multiple links at a time in the requirements editor or in the traceability matrix.
in the requirements editor, select multiple links by pressing shift or ctrl and clicking the links. right-click one of the selected links and click clear issue from the context menu. to clear all change issues for an entire link set, select the link set and, in the right pane, under change information, click clear all. you can also right-click the link set and select clear all change issues from the context menu.
in the traceability matrix, select multiple cells by clicking and dragging, or pressing shift or ctrl, click the cells, and click clear change issue in the toolstrip.
add comments to links
when you resolve change issues, it is good practice to add a comment to the link describing the actions. each link has a comments property. when you clear a change issue in either the requirements editor or traceability matrix, a dialog box appears and you are prompted to add a comment.
to add an additional comment:
in the requirements editor, click show links.
select the link.
in the right pane, under comments, click add comment.
manually check for using links change tracking
change tracking information is automatically updated in the requirements editor, but you can also manually refresh it. to refresh the change tracking information:
in the requirements editor, click refresh.
in the traceability matrix, click update.
in the traceability matrix, you need to refresh change tracking information manually.
related topics
- (simulink)