需求可追溯性
将需求链接到设计、代码和测试,指定关系,添加标记,查看模型和代码的可追溯性,检查一致性
创建需求链接,以建立对模型元素、测试用例、测试框架、MATLAB® 代码行、数据字典、Stateflow® 元素、System Composer™ 架构模型和其他需求的可追溯性。指定链接类型以传达关系的性质,例如用于实现功能需求的模型元素或用于验证测试设定需求的测试框架。创建自定义需求和链接类型以扩展默认链接功能。
使用需求编辑器创建和查看链接,以及使用需求透视查看模型上下文中的需求。
App
需求编辑器 | Create and edit requirements |
工具
配置文件编辑器 | Create and manage profiles with stereotypes and properties |
类
slreq.LinkSet | Work with link sets |
slreq.Link | Traceable link |
对象
slreq.TextRange | Line range (自 R2022b 起) |
方法
setDestination | Set requirement link destination |
setSource | Set requirement link source |
函数
slreq.clear | Clear requirements and links from memory |
slreq.closeRequirementsManager | Close Requirements Manager app in model (自 R2021a 起) |
slreq.cmConfigureVersion | Set version of linked requirements documents (自 R2019b 起) |
slreq.cmGetVersion | Get configured version of linked requirements documents (自 R2019b 起) |
slreq.createLink | Create traceable links |
slreq.createTextRange | Create line ranges (自 R2022b 起) |
slreq.find | Find requirement, reference, and link set artifacts |
slreq.getDependentLinkSets | Retrieve link sets with incoming links to requirement set (自 R2023a 起) |
slreq.getIncomingLinkTypeLabel | Retrieve incoming link type label (自 R2023a 起) |
slreq.getOutgoingLinkTypeLabel | Retrieve outgoing link type label (自 R2023a 起) |
slreq.generateTraceabilityDiagram | Create a traceability diagram (自 R2021b 起) |
slreq.generateTraceabilityMatrix | Create traceability matrix (自 R2021a 起) |
slreq.getExternalURL | Get navigation URL for link source or destination, requirement, test or Simulink model element (自 R2021a 起) |
slreq.getTextRange | Get line ranges (自 R2022b 起) |
slreq.getTraceabilityMatrixOptions | Create options structure for traceability matrix (自 R2021a 起) |
slreq.inLinks | Get incoming links for requirement or other linkable item |
slreq.load | Load requirement set or link set |
slreq.openRequirementsManager | Open Requirements Manager app in model (自 R2021a 起) |
slreq.outLinks | Get outgoing links for a block or other linkable item |
slreq.refreshCustomizations | Register Requirements Toolbox customizations (自 R2022a 起) |
slreq.show | Navigate to link source or destination (自 R2020a 起) |
slreq.structToObj | Convert link source or destination information from structure to model object type |
主题
创建链接
- Create and Store Links
Trace requirements to design and test items by creating links. - 在 Simulink 中查看和链接需求
使用需求透视将 Simulink® 模型中的元素链接到需求。 - 将测试用例链接到需求
将 Simulink Test™ 测试用例与需求相关联。 - Requirements Traceability for MATLAB Code
Associate requirements with MATLAB code and plain-text external code, such as C code. - Link from Sequence Diagrams
Create links from model elements in sequence diagrams to requirements.
跟踪生成的代码的需求
- Requirements Traceability for Code Generated from MATLAB Code
Include comments in generated code that contain information about requirement links to MATLAB code. - Generate Code for Models with Requirements Links
Set configuration parameters so that information about requirements links is included in the generated code.
自定义链接
- Define Custom Requirement and Link Types and Properties
Customize requirements and links by using custom types and custom attributes, or stereotypes.
对链接进行可视化、管理和故障排除
- Load and Resolve Links
Load link sets by loading artifacts and resolve links. - Track Requirement Links with a Traceability Matrix
Track and manage links and change issues with the Traceability Matrix. - Visualize Links with Traceability Diagrams
Visualize the traceability structure of requirements and other Model-Based Design items with traceability diagrams. - Assess Allocation and Impact
Assess the allocation of requirements and impact of changes. - Requirements Consistency Checks
Check for missing or unresolved links.
与第三方应用程序链接
- Link Directly to Requirements in Microsoft Word Documents
Link from requirements in a Word document to Simulink blocks. - Link Directly to Requirements in Microsoft Excel
Create links from requirements managed in Microsoft® Excel® to design and test items in MATLAB and Simulink. - Link and Trace Requirements with IBM DOORS Next
Link to requirements in IBM® DOORS® Next. - Manage Navigation Backlinks in External Requirements Documents
Insert hyperlinks to navigate from requirements documents to model elements in Simulink.