Manage Tests and Test Cases with Quality Center

When you use the CA Agile Central–Quality Center connector, you can do the following:

Create test runs in Quality Center

  1. Create a test in Test Plan.

  2. Create a test set in Test Lab.

  3. From Execution Grid tab, click Select Tests. The Test Plan Tree displays.

  4. Select the test from Test Plan Tree and click the green arrow to create a test instance.

    The test instance displays in the Execution Grid tab.


  5. Click Run, and then click Begin Run.


    You may add a step:

    And pass or fail it:

  6. Save the test run.

Copy tests and runs from Quality Center to CA Agile Central

  1. Configure the connector following the steps outlined in the installation guide.
  2. Repeating the entire guide is outside of the scope of this document, but the screenshots below illustrate custom fields created in Quality Center for test and run artifact types, and custom fields created in CA Agile Central for test case work item type. Those fields are intended to store the ID of the corresponding artifact from the other system.

    Below is the custom field created for Quality Center’s Test to hold Object ID of the corresponding CA Agile Central test case:

    Below is the custom field created for Quality Center’s Run to hold Object ID of the corresponding CA Agile Central test case result:

    Below is the custom field created for CA Agile Central’s test case to hold ID of the corresponding Quality Center test:

    Note that this is not symmetrical. CA Agile Central’s TestCaseResult work item type does not allow creation of custom fields, and support for mapping runs from Quality Center to test case results from CA Agile Central only support Copy service in one direction (from Quality Center to CA Agile Central).

    Following are the relevant extracts from the files:

    In the configuration file for tests and test cases, in <CA Agile CentralConnection>, there is:

    <ArtifactType>TestCase</ArtifactType>
       <ExternalIDField>TCExternalID</ExternalIDField>
     

    In the same configuration file for test cases, in QCConnection, there is:

    <TestFolder>MyTestFolder</TestFolder>
       <IDField>TS_TEST_ID</IDField>
       <ExternalIDField>TS_USER_01</ExternalIDField>
       

    In the configuration file for runs and test case results, in CA Agile CentralTestResultConnection the artifact type is specified by <ArtifactType>TestCaseResult</ArtifactType> but there is no ExternalIDField on the CA Agile Central side.

    In the same configuration file for runs and test case results, in QCRunConnection there is:

    <IDField>RN_RUN_ID</IDField>
       <ExternalIDField>RN_USER_01</ExternalIDField>
       <TestExternalIDField>TS_USER_01</TestExternalIDField>
       

    Notice that TestExternalIDField has the same value here as ExternalIDField in the tests and test cases configuration file. That is how the link between a run and test (test case result and test case) is maintained.

  3. After you have created test runs, run the connector with both configuration files.

  4. Below is a screenshot of the rallylog entry related to the copy of Quality Center test to CA Agile Central test case:

    Below is a screenshot of the rallylog entry related to the copy of Quality Center run to CA Agile Central test case result:

    Below is the screenshot of the details page of the newly created CA Agile Central test case. Notice that the Results link on the left shows that there is also a test case result associated with this test case:




Copy test cases from CA Agile Central to Quality Center

  1. Create a test case in CA Agile Central.
  2. In the xml configuration file of tests and test cases in the <QCConnection> section there must be a pre-existing Quality Center Test Folder (from Test Plan) specifying:

  3. <TestFolder>MyTestFolder</TestFolder>

    When the test case from CA Agile Central is copied to Quality Center it should go to this folder.

  4. Run the connector.

  5. The test is created in Quality Center. Notice the TS_USER_01 labeled CA Agile CentralID field populated with Object ID of the corresponding CA Agile Central test case:

    On the CA Agile Central side, the original test case now has its custom field TCExternalID populated with the ID of the corresponding Quality Center test.

    If a test instance of this test needs to be created in Test Lab and a run needs to be copied from Quality Center to CA Agile Central, follow the steps described earlier in this document. Note that runs can only be copied from Quality Center to CA Agile Central. The connector does not support copy service from CA Agile Central to Quality Center for test case results.

Update test cases from CA Agile Central to Quality Center

  1. Update the test case in CA Agile Central.
  2. Run the connector.




Update test cases from Quality Center to CA Agile Central

  1. Update the test case in Quality Center.

  2. Run the connector. The corresponding test case in CA Agile Central is updated.



Link CA Agile Central stories to CA Agile Central test cases

  1. Create a test in Quality Center.

  2. A Formatted ID of CA Agile Central user story US93 in the CA Agile Central WorkProduct field that references a real story in CA Agile Central in the same CA Agile Central workspace and project indicated in the configuration file.

    The goal of this setup is to make sure that when a test is copied from Quality Center to CA Agile Central, it is linked to a pre-existing user story in CA Agile Central by following the steps below. On the CA Agile Central side, the linking happens through a WorkProduct field of TestCase object.

    1. Create a user field in Quality Center for Test artifact to hold the CA Agile Central FormattedID. The field must be a string type.

    2. Add this mapping to the FieldMapping section of the configuration file for tests and test cases:

    3. <Field><CA Agile Central>WorkProduct</CA Agile Central><Other>TS_USER_02</Other></Field>

    4. Add CA Agile CentralReferenceFieldHandler to the CA Agile CentralFieldHandlers section of the same configuration file.

           
        <CA Agile CentralReferenceFieldHandler>
          <FieldName>WorkProduct</FieldName>
          <ReferencedFieldLookupID>FormattedID</ReferencedFieldLookupID>
          </CA Agile CentralReferenceFieldHandler>
        </CA Agile CentralFieldHandlers>
           

      An example of the syntax in the context of Connector section of the xml configuration file:

           
        <Connector>
            <FieldMapping>
              <Field><CA Agile Central>Name</CA Agile Central><Other>TS_NAME</Other></Field>
              <Field><CA Agile Central>WorkProduct</CA Agile Central><Other>TS_USER_02</Other></Field>
              <Field><CA Agile Central>Description</CA Agile Central><Other>TS_DESCRIPTION</Other></Field>
              </FieldMapping>
            <CA Agile CentralFieldHandlers>
              <CA Agile CentralReferenceFieldHandler>
                <FieldName>WorkProduct</FieldName>
                <ReferencedFieldLookupID>FormattedID</ReferencedFieldLookupID>
                </CA Agile CentralReferenceFieldHandler>
              </CA Agile CentralFieldHandlers>
        <Connector>
           
  3. Run the connector.




  4. The test case is created in CA Agile Central, linked to a CA Agile Central story.