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 測試計劃的「說明」內容,如下所示:
<dc:description><![CDATA[Description]]>/dc:description>
任何資料節點(例如 ><![CDATA[***]]>)都代表一個位置保留元,用來取代 TestManager 測試構件中的實際值。 一般而言,*** 代表 TestManager 中的構件內容名稱。
任何無效內容名稱會造成空白值移轉。
如果您想要在 Quality Manager 中設定測試計劃說明,使其成為 TestManager 中的測試計劃擁有者,請變更上述範例如下:
<dc:description><![CDATA[Owner]]></dc:description>
如果您想要在 Quality Manager 中設定特定內容的固定值,請將資料節點指定為簡單的文字節點,如下所示:
<dc:description>My 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