< Previous | Next >

Lesson 4: Importing project requirements into Rhapsody Gateway from DOORS

In this lesson, you import project requirements into a Rhapsody® Gateway project.
In addition to Administrator access to DOORS®, you must have Rational® Rhapsody for C or C++, and the Rhapsody Gateway installed on your system for the import.
Note: The Elevator project is used as the requirements example for this tutorial. The project is in the Rhapsody/Gateway folder. The same model exists for both C++ and C programming languages; either one can be used for the exercise.
  1. In Rational Rhapsody for C or C++, click File > Open to load the elevator project from the Rational\Rhapsody\7.5.3\Gateway\examples\coupling\Rhapsody\Elevator install directory.
  2. Select the example elevator.rpy. Right-click on the elevator project, and select Rational Rhapsody Gateway > Open.
  3. The Rhapsody Gateway starts, and the Coverage Analysis View appears by default.
  4. Click the Edit Project button converter, from the menu bar, to open the Rhapsody Gateway Configuration window.

    converter

    converter

  5. Click the Add Document button converter in the middle of the page under the work area. Click to stamp the document into the main window. The default document name is Document1.
  6. In the Rhapsody Gateway Configuration window, click on Type of Analysis tab to select Doors Basic from the dropdown list.

    Note that the Intermediate file box is automatically checked off indicating that the intermediate file is saved.

  7. Highlight the content in the File or Directory box, and click the browse "…" button that becomes functional as a result of the highlighting at the right of the tab. The Select DOORS module window opens where you are prompted to log into DOORS.

    converter

  8. After you login into DOORS, select the Update button converter to display the Elevator project in the DOORS Database box of the Select DOORS module window.

    converter

  9. The Doorselelevatorpjt project appears listed under DOORS Database with all the Elevator Specs files underneath.

    The DOORS requirements are now imported into the Gateway and the connection between the UML model and the requirements covered by the model is established.

  10. To add a coverage link to the project, select one of the specs files, for example Elevator Specs, and click OK.
  11. In the Rhapsody Gateway window, select the Add Cover button converter. Click Apply > OK.
    Note: The direction of the arrow is important. The model always covers the requirement, so the direction of the arrow goes from the model to the requirement. The coverage link is now made; this establishes the connection between the model and the requirements.
  12. Click Yes when the Project Analysis window appears prompting you to reanalyze the Rhapsody Gateway project.
    1. Return to the Rhapsody Gateway Coverage Analysis View, and confirm that here are two documents listed.
    2. Click on the requirements, and confirm the uncovered requirements that are highlighted in red converter.

      Note that the sun symbol converter indicates the newly added elements.

The DOORS requirements are now imported into the Gateway and the connection between the UML model and the requirements covered by the model is established.

< Previous | Next >

Feedback