Main Content

创建和编辑属性映射

REQIF™格式表示要求SpecObject。这SpecObjecthas aSpecObjectType,将属性定义为存储需求信息。这SpecObjectscontains values for these attributes.

从reqif文件导入要求后,您可以自定义从reqif需求映射的属性需求Toolbox™需求属性和自定义属性。有关更多信息,请参阅将自定义属性添加到要求。您还可以保存此映射以进行重复使用。

Edit the Attribute Mapping for Imported Requirements

您可以从reqif文件中导入要求要求编辑。有关更多信息,请参阅从reqif文件导入要求

When you import requirements from ReqIF files, you must choose an import mapping to use. The imported requirement type, properties, and imported link type depend on the import mapping that you choose. For more information, seeChoosing an Import Mapping

从REQIF文件导入要求后,您可以为导入的要求编辑属性映射:

  1. 打开要求编辑并导入reqif文件。有关更多信息,请参阅从reqif文件导入要求

  2. 根据您是否导入引用的要求或要求,选择导入节点或顶级要求。有关更多信息,请参阅选择导入模式

    您可以在细节窗格,下属性映射

  3. Edit the mapping by selecting a property or attribute from the drop-down in theMapped To柱子。

    笔记

    编辑属性映射时,您只能将属性映射到内置的需求类型。您不能从下拉列表中选择一个自定义属性Mapped To柱子。

You can save the current attribute mapping by clicking保存映射。映射保存为XML文件。您可以通过单击加载保存的映射负载映射

要更改属性映射的名称或描述,请打开您在文本编辑器中创建的XML文件并修改值的值<名称>andtags.

具有需求工具箱根据最初创建reqif文件的工具选择导入属性映射:

  1. 在文本编辑器中,打开属性映射和reqif文件。

  2. Find the value of the在reqif文件中标记。

  3. 改变价值<名称>在属性映射文件中标记以匹配tag.

指定默认值reqif需求类型

一些外部需求管理工具,例如Polarion™,支持多种类型的需求。金宝app在这种情况下,修改属性映射文件以指定导出到REQIF时要使用的默认REQIF要求类型。例如:

SpecObject System Requirement
这value of the标签表示每个导出SpecObject将有SpecObjecttype as系统要求

指定reqifTemplate

一些外部需求管理工具,例如北极星和IBM®合理的®®, require a specific set of ReqIF data type, attribute, andSpecObjecttype definitions. They may also require that the ReqIF specification be of a certain type. You can supply these definitions by specifying the name of a template ReqIF file in the mapping file produced by the external requirements management tool. During ReqIF export,需求工具箱导入模板文件,并使用它来生成和导出具有与外部工具兼容的格式的REQIF文件。

Save the template files in the same folder as the attribute mapping file,matlabroot/toolbox/slrequirments/attribute_maps。要在“属性映射”中指定模板文件,请打开与文本编辑器中的外部需求管理工具相对应的属性映射文件。修改值标签以匹配模板文件的名称。您可能需要重新启动MATLAB®为了能够在“导入需求”对话框中选择映射文件。

也可以看看

Related Topics