Rally - HP ALM - HP ALM Config Copy Tests 2 Test Cases pxml

Document ID : KB000125059
Last Modified Date : 21/01/2019
Show Technical Document Details
Introduction:

This configuration file will COPY (in one direction only) from Quality Center to CA Agile Central

Instructions:

QC-config-CopyTests2TestCases.pxml

This configuration file will COPY (in one direction only) from Quality Center to CA Agile Central:

FROM: "Tests" in QC's TestPlan

TO: "TestCases" in CA Agile Central's TestFolder (under TestPlan)

<!-- **********************************************************************
FILE:    QC-config-CopyTests2TestCases.pxml

PURPOSE: This configuration file will COPY, in one direction only (from
         Quality Center to Rally):
            FROM: "Tests"     in QC's TestPlan
            TO:   "TestCases" in Rally's TestFolder (under TestPlan)

USAGE:   Replace all the "Your-..." strings below with values which are
         appropriate for your environment.
*********************************************************************** -->
<Config>
    <RallyConnection>
        <Url>rally1.rallydev.com</Url>
        <WorkspaceName>Your-Rally-Workspace</WorkspaceName>
        <Projects>
            <Project>Your-Rally-Project</Project>
        </Projects>
        <User>Your-Rally-Username</User>
        <Password>Your-Rally-Password</Password>
        <ArtifactType>TestCase</ArtifactType>
        <ExternalIDField>Your-Rally-ExternalID</ExternalIDField>
    </RallyConnection>

    <QCConnection>
        <Url>Your-QC-URL:port</Url>
        <Domain>Your-QC-Domain</Domain>
        <Project>Your-QC-Project</Project>
        <User>Your-QC-Username</User>
        <Password>Your-QC-Password</Password>
        <ArtifactType>TEST</ArtifactType>

        <!-- If no <TestFolder> is specified,
             then *ALL* Tests in TestPlan will be copied.

             If a <TestFolder> is specified,
             then *ALL* Tests in that folder only will be copied
             (but not subfolders or Tests in subfolders).
        -->
        <TestFolder>JPsTestPlanFolder</TestFolder>

        <IDField>TS_TEST_ID</IDField>
        <ExternalIDField>Your-QC-ExternalID</ExternalIDField>
    </QCConnection>

    <Connector>
        <FieldMapping>
            <Field><Rally>Name</Rally>       <Other>TS_NAME</Other>         </Field>
            <Field><Rally>Description</Rally><Other>TS_DESCRIPTION</Other>  </Field>
            <Field><Rally>Notes</Rally>      <Other>TS_DEV_COMMENTS</Other> </Field>
            <Field><Rally>TestFolder</Rally> <Other>TS_SUBJECT</Other>      </Field>
        </FieldMapping>

        <!-- Without the <RallyTestFolderFieldHandler> and <QCTestplanFolderFieldHandler>
             below, the folder structure from QC will NOT be copied into Rally, rather only
             TestCases will be created in Rally.

             When the <RallyTestFolderFieldHandler> and <QCTestplanFolderFieldHandler>
             are specifiedbelow, and no QC <TestFolder> tag is specified above, then the structure
             under the QC "Subject" folder (not the Subject folder itself -and- excluding the
             Unattached folder), will be maintained (i.e. copied to Rally) for all QC folders
             which contain Tests (or have Tests in one of their subfolders). The structure
             can then be viewed in Rally under the "Quality" >> "Test Plan" tab.
        -->
        <RallyFieldHandlers>
            <RallyTestFolderFieldHandler>
                <FieldName>TestFolder</FieldName>
            </RallyTestFolderFieldHandler>
        </RallyFieldHandlers>

        <OtherFieldHandlers>
            <QCTestplanFolderFieldHandler>
                <FieldName>TS_SUBJECT</FieldName>
            </QCTestplanFolderFieldHandler>
        </OtherFieldHandlers>
    </Connector>

    <ConnectorRunner>
        <Preview>True</Preview>
        <LogLevel>Debug</LogLevel>
        <Services>COPY_QC_TO_RALLY</Services>
    </ConnectorRunner>
</Config>