Rational TestManager 测试工件到 Rational Quality Manager 记录字段的缺省映射是通过名称为 (RQMMigration_<artifact Type>.xml) 的 XML 模式文件来控制的。每个工件类型都对应一个文件,例如,RQMmigration_TestPlan.xml 对应于测试计划迁移。
要添加新映射,请复制现有映射文件并进行相应更新。
调整字段映射之后,请重新运行迁移向导以使用更新的映射文件。
下方显示测试计划的缺省映射。
<?xml version="1.0" encoding="utf-8"?>
<testplan xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:jzalm="http://jazz.net/xmlns/alm/v0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rtm="http://schema.ibm.com/rational/tm/v7.0.2/">
<dc:identifier><![CDATA[UID]]></dc:identifier>
<dc:title><![CDATA[Name]]></dc:title>
<dc:description><![CDATA[Description]]></dc:description>
<dc:creator><![CDATA[CreatedBy]]></dc:creator>
<jzalm:owner><![CDATA[Owner]]></jzalm:owner>
<jzalm:state>Completed</jzalm:state>
<rtm:Custom1 extensionDisplayName="Custom 1">
<![CDATA[Custom1]]>
</rtm:Custom1>
<rtm:Custom2 extensionDisplayName="Custom 2">
<![CDATA[Custom2]]>
</rtm:Custom2>
<rtm:Custom3 extensionDisplayName="Custom 3">
<![CDATA[Custom3]]>
</rtm:Custom3>
</testplan>
例如,dc:description 是 Quality Manager 测试计划的目标属性,并映射到 TestManager testplan 的“描述”属性,如下所示:
<dc:description><![CDATA[Description]]>/dc:description>
任何“数据”节点(如 ><![CDATA[***]]>)都表示用于替换 TestManager 测试工件中实际值的占位符。 通常,*** 表示 TestManager 中的工件属性名称。
任何无效属性名都会导致迁移空白值。
如果您想要将 Quality Manager 中的测试计划描述设置为 TestManager 中的 testplan 所有者,请按照如下方式更改上述示例:
<dc:description><![CDATA[Owner]]></dc:description>
如果您想要为 Quality Manager 中的特定属性设置固定值,请将数据节点指定为简单文本节点,如下所示:
<dc:description>我的描述</dc:description>
# Configuration file for RTM Migration
[CategoryType]
# This section include mapping of category type name
# Predefined category type for test cases are "RTM_TestCases" (for root/ parent test case folder),
# "RTM_Level_1" (for 1st child) , "RTM_Level_2" (for 2nd child) and so on
# To change the category type name, change the value in right hand side
RTM_TestCases = RTM_TestCases
RTM_Level_1 = RTM_Level_1
RTM_Level_2 = RTM_Level_2
RTM_Level_3 = RTM_Level_3
RTM_Level_4 = RTM_Level_4
RTM_Level_5 = RTM_Level_5
RTM_Level_6 = RTM_Level_6
# Predefined category type for execution result are "BuildFolder" and "LogFolder"
BuildFolder = BuildFolder
LogFolder = LogFolder