Main Content

Link C/C++ Sources and Tests to Requirements in IBM DOORS Software

You can link C/C++ tests in the Polyspace Platform user interface to test requirements authored in a requirements management tool such as IBM® DOORS® or IBM DOORS Next Generation (NG). This topic shows how to set up requirements linking to the IBM DOORS software.

Set Up Requirements Linking

IBM DOORS

Perform an initial setup to allow communication between your Polyspace® Test™ and DOORS software installation.

Note that the integration between Polyspace Test and IBM DOORS software only works on Windows® platforms.

  1. If the DOORS software is running, close the application. Likewise, if the Polyspace Platform user interface is open, close the interface.

  2. Copy the following files from polyspaceroot\toolbox\shared\reqmgt\dxl to the doorsInstallDir\lib\dxl\addins folder.

    addins.idx
    addins.hlp

    Here:

    • polyspaceroot is the Polyspace installation folder, for instance, C:\Program Files\Polyspace\R2026a.

    • doorsInstallDir is the IBM DOORS software installation folder.

    If you have already modified these files in your DOORS software installation, instead of replacing them, you merge the contents of the existing files with the new ones.

  3. Copy the following files from polyspaceroot\toolbox\shared\reqmgt\dxl to the doorsInstallDir\lib\dxl\addins\dmi folder.

    dmi.hlp
    dmi.idx
    dmi.inc
    runsim.dxl
    selblk.dxl
    sellnk.dxl

    Replace any existing versions of these files.

  4. Open the file doorsInstallDir\lib\dxl\startup.dxl. In the user-defined files section, add the following include statement:

    #include <addins/dmi/dmi.inc>

    If you upgrade from Version 7.1 to a later version of the DOORS software, perform these additional steps:

    1. In your DOORS installation folder, navigate to the ...\lib\dxl\startupFiles subfolder.

    2. In a text editor, open the copiedFromDoors7.dxl file.

    3. Add // before this line to comment it out:

      #include <addins/dmi/dmi.inc>

    4. Save and close the file.

  5. Start the DOORS software and the Polyspace Platform user interface.

At this point, you should be able to link from a test authored in the Polyspace Platform user interface to requirements in IBM DOORS software.

IBM DOORS Next Generation

Since IBM DOORS Next Generation has a web server-based interface, to set up requirements linking, you must provide the details of the web server in the Polyspace Platform user interface.

  1. On the Polyspace Platform toolstrip, select Settings to open the Polyspace Platform Settings.

  2. On the Testing and Profiling tab, select the DNG Server Configuration button next to Requirement Linking.

  3. In the DNG Server Login Configuration Window, enter the DOORS Next server address, port number, and service root as they appear in the web browser when accessing DOORS Next. Enter your username and password, or enter the name of a custom authentication callback function. For more information on the callback function, see setCustomLoginProvider (Requirements Toolbox).

Link to Requirements

In the Polyspace Platform user interface, after you add files to a project and parse the source code, you add links to requirements from source files or tests. To add links to a requirement:

  1. Click the Button to create or edit links to requirements button next to a linkable element in a Polyspace Platform project:

    • In a C/C++ source file, the button appears to the left of each function definition.

    • In a graphical test case, the button appears next to the Requirements field in the test case header or a test step.

    • In a C/C++ xUnit test, the button appears on the left of these test creation macros:

      • PST_SIMPLE_TEST and PST_SIMPLE_TEST_BODY (simple tests)

      • PST_TEST and PST_TEST_BODY (tests that are part of a suite)

    Showing the icon to click next to the requirements option

  2. In the Outgoing Links dialog box, click New. Link to a requirements document in the DOORS interface as follows:

    1. From the Document type dropdown, select IBM DOORS or IBM DOORS Next.

    2. Open the requirements document in the IBM DOORS or IBM DOORS Next interface and select a requirement. Click Use current in the Outgoing Links dialog box to link to the currently selected requirement. You should see the Description and Document fields automatically populated with information from the requirements.

      Outgoing Links management window

  3. Click OK. You see a requirement link next to the linkable element in the project.

See Also

Topics