Linking model elements to test cases
When viewing projects in the Rhapsody Model Manager web interface, you can create links between model elements and IBM Engineering Test Management (ETM) 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 ETM 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
- To view your projects, select from the main menu of the web interface.
- Expand your project until you find the model element that you want to link to a test case.
- Click the model element to view its details.
- 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.
- Select the artifact container that contains the test case.
- Select the relevant test case.
- Click OK.
Results
The newly created link is now displayed in the table of links for the model element.
Note: The link is created in the ETM 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 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 Rhapsody)
When working with a model in Rhapsody, you can create links between model elements and ETM 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 ETM 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
- In the 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.
-
Select Add OSLC Link window is displayed.
. The
- Click the OSLC Picker button.
- For the link type, select Validated By.
- Select the relevant project.
- For Type, select Select Test Case.
-
Click Select...
The Select Test Case window is displayed.
- Select the relevant test case.
- Click OK.
- In the Add Link window, click OK.
Results
The new link is now visible in the model browser.
Note: The link is created in the ETM 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
Rhapsody model, such as links to remote requirements, the icon overlay is an arrow pointing to the
right.)