Linking model elements to test cases

When viewing projects in the Rhapsody® Model Manager web interface, you can create links between model elements and Rational® Quality Manager test cases.

Before you begin

  • Links can be created to test cases only after the appropriate association has been created between the Rhapsody Model Manager project area and the Rational Quality Manager project area. Verify that your administrator has created such an association.
  • If the project areas have been enabled for configuration management, then both project areas must belong to the same global configuration.

Procedure

  1. To view your projects, select Designs > Explorer from the main menu of the web interface.
  2. Expand your project until you find the model element that you want to link to a test case.
  3. Click the model element to view its details.
  4. In the Links table, click Add Link, and then select Validated by from the drop-down list of link types. The Create Link window is displayed.
    Add link to test case (using RMM web interface)
  5. Select the artifact container that contains the test case.
  6. Select the relevant test case.
  7. Click OK.

Results

The newly created link is now displayed in the table of links for the model element.

OSLC icon for links to test cases - arrow pointing to left
Note: The link is created in the Rational Quality Manager project area, and is therefore delivered automatically in the source control system. This is reflected in the icon for the links created to test cases, which is an arrow pointing to the left. (For OSLC links stored in the Rational Rhapsody model, such as links to remote requirements, the icon used is an arrow pointing to the right.)

Linking model elements to test cases (in Rational Rhapsody)

When working with a model in Rational Rhapsody, you can create links between model elements and Rational Quality Manager test cases.

Before you begin

  • Links can be created to test cases only after the appropriate association has been created between the Rhapsody Model Manager project area and the Rational Quality Manager project area. Verify that your administrator has created such an association.
  • If the project areas have been enabled for configuration management, then both project areas must belong to the same global configuration.

Procedure

  1. In the Rational Rhapsody model browser, find the model element that you want to link to a test case, and right-click the element to open the pop-up menu.
  2. Select Add New > OSLC Link. The Add OSLC Link window is displayed.
    Add Link window
  3. Click the OSLC Picker button.
  4. For the link type, select Validated By.
  5. Select the relevant project.
  6. For Type, select Select Test Case.
  7. Click Select... The Select Test Case window is displayed.
  8. Select the relevant test case.
  9. Click OK.
  10. In the Add Link window, click OK.

Results

The new link is now visible in the model browser.

icon overlay for OSLC link to test case
Note: The link is created in the Rational Quality Manager project area, and is therefore delivered automatically in the source control system. This is reflected in the icon overlay for the link, which is an arrow pointing to the left. (For OSLC links stored in the Rational Rhapsody model, such as links to remote requirements, the icon overlay is an arrow pointing to the right.)

Feedback