Rational Quality Manager 레코드 필드로의 Rational TestManager 테스트 아티팩트의 기본 맵핑은 (RQMMigration_<아티팩트 유형>.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