Rally - HP ALM - HP ALM Config Copy Rally TC and Steps to QC
search cancel

Rally - HP ALM - HP ALM Config Copy Rally TC and Steps to QC

book

Article ID: 125046

calendar_today

Updated On:

Products

CA Agile Central SaaS (Rally) CA Agile Central On Premise (Rally)

Issue/Introduction

A configuration file which will perform a one-time COPY (only) of Rally TestCases and Steps --to-- QC Tests and TestSteps.
NOTE: UPDATE is not supported.

Environment

Release: AGUE5099000-SAAS-Agile Central-Unlimited Edition SaaS-50 User Pack
Component:

Resolution

QC-config-test-steps-01.pxml

A configuration file which will perform a one-time COPY (only) of Rally TestCases and Steps --to-- QC Tests and TestSteps.

NOTE: UPDATE is not supported.

<!--
FILE:    QC-config-test-steps-01.pxml

PURPOSE: A configuration file which will perform a one-time COPY (only) of 
         Rally TestCases and Steps --to-- QC Tests and TestSteps.
         NOTE: UPDATE is not supported.

SETUP - RALLY TO QC:
         1) Create a "Test" in Rally which has a "TestStep".
         2) Run the connector; a "Test" is created in QC under "Test Plan".  
            The "Design Steps" tab in QC will show the "Step" copied from
            Rally.

NOTES ON USE:
         1) Only COPY is supported, not UPDATE.
         2) The QC folder specified in the <TestFolder> element is used to
            designate the QC folder where Rally TestCases/Steps will be
            copied.

USAGE:   Replace all the "Your-..." strings below with values 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>
        <TestFolder>Your-QC-TestFolder</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>WorkProduct</Rally> <Other>TS_USER_03</Other></Field>
            <Field><Rally>Description</Rally> <Other>TS_DESCRIPTION</Other></Field>
        </FieldMapping>

        <RelatedObjectLinkers> 
            <RallyToQCTestStepLinker>
                <ValidationStep>Last</ValidationStep>
                <StepFields>
                    <Field><Rally>Input</Rally>          <Other>DS_DESCRIPTION</Other></Field>
                    <Field><Rally>ExpectedResult</Rally> <Other>DS_EXPECTED</Other></Field>
                </StepFields>
            </RallyToQCTestStepLinker>
        </RelatedObjectLinkers> 

        <RallyFieldHandlers>
            <RallyReferenceFieldHandler>
                <FieldName>WorkProduct</FieldName>
                <ReferencedFieldLookupID>FormattedID</ReferencedFieldLookupID>
            </RallyReferenceFieldHandler>
        </RallyFieldHandlers>
<!-- NOTE: Quality Center has a set of forbidden characters when creating a name for a test. Use a field handler for TS_NAME which will remove the 
forbidden characters when pushing updates or creates from CA Agile Central to HP ALM.  -->                
        <OtherFieldHandlers>
           <QCNameFieldHandler>
              <FieldName>TS_NAME</FieldName>
           </QCNameFieldHandler>
        </OtherFieldHandlers>

    </Connector>

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