Workflow for a Traceability Coverage Matrix

You can create a report to retrieve coverage information from a scope. Such scope is created in Systems Traceability Dashboarding.

Note: In the following scenario, the variable default names are kept. It is recommended to customize these names to clarify the report template.
Important: By default, objects from Systems Traceability Dashboarding are not defined as input types.
  1. Open Me > Preferences > Report Template Design > Input Types Filter.
  2. In the Filter box, enter System Scope to display only the relevant types.
  3. From the Available types list, select System Scope.
  4. Click the right arrow to add it to the Selected types list.

For more information, see Customizing Preferences for Design Tasks.


Before you begin: In Systems Traceability Dashboarding:
  1. Create a scope containing requirements.
  2. Create traceability links with nodes ("OR" coverage) between these requirements.

    For more information, see Systems Traceability Dashboarding User's Guide: Analyzing Traceability: About Traceability Computation.

See Also
About Workflow Overview
  1. To define a report template for scopes:
    1. From the Properties tab, in the Parameters area, click New.
    2. In the Name box, enter Scope.
    3. From the Type list, select System Scope.
  2. To access the scope data:
    1. From the Data tab, expand the following variables and categories.
    2. Drag the method to the graphical area.
    Variable and Type Category Method Graphical Area
    Scope: System Scope Navigation Scope Navigation Empty space.
    sco: Scope Outgoing relationships To analysisResults Loop on Scope Navigation of scope: sco
    tra: Scope's analysisResults Outgoing relationships To Traceability Loop on To analysisResults of sco: tra
    tra2: Traceability Preview Get Previews Loop on To Traceability of tra: tra2
    Recommendation:

    From the Properties area, in the Condition: field, enter the following OTScript condition: EACHINDEX = 1.

    This condition limits the displayed result to the first occurrence that is found in the scope view.
  3. To manage the display of the scope data:
    1. From the Structure tab, drag Section to Loop on Get Previews of tra2: pre, and then drag Paragraph to this section.
    2. From the Data tab, expand the following variables and categories.
    3. Drag the method to the graphical area.
    Variable and Types Category Method Graphical Area
    pre: Preview Attributes Title Title of the section in Loop on Get Previews of tra2: pre
    pre: Preview Preview Get Picture Paragraph in the section
    pre: Preview Preview Get Rich Text Paragraph in the section
  4. To access the coverage ratio of the requirements:
    1. From the Data tab, expand the following variables and categories.
    2. Drag the methods to the graphical area.
    Variable and Type Category Method Graphical Area
    tra2: Traceability Outgoing relationships To hasPart Loop on To Traceability of tra: tra2, under the previous loop Loop on Get Previews of tra2: pre
    has: Traceability's hasPart Outgoing relationships To Traceability Document Loop on To hasPart of tra2: has
  5. To manage the display of the coverage ratio of the requirements:
    1. From the Structure tab, drag Section to Loop on To Traceability Document of has: doc, and then Paragraph to this section.
    2. From the Data tab, expand the following variables and categories, and then drag the method to the graphical area.
    Variable and Type Category Method Graphical Area
    doc: Traceability Document Attributes title Title in the section
    doc: Traceability Document Attributes CoverageRatio Paragraph in the section
    Tip: To introduce this information in your preview:
    1. From the Structure tab, add a Text element.
    2. Enter Coverage ratio:.
  6. From the Structure tab, to display traceability links covering each requirement in a table:
    1. Drag Table to the section (below the paragraph).
    2. In the first cell, drag Text and enter Requirement.
    3. In the second cell, drag Text and enter Covered By.
  7. From the Data tab, expand the following variables and categories, and then drag the methods to the graphical area.

    Important: For this scenario, you must create an OTScript method to retrieve the children of the requirement. For this, copy the following code corresponding to this method in the OTScript tab:
    METHOD SMM.SycType.Traceability.Node.getAllChildren() -doc : {
        THIS.*(`dc:hasPart`.`syctype:Traceability.Node`)
    } LABEL "Extensions,Get All Children";
    

    For more information, see OTScript Page Customization.

    Variable and Type Category Method Graphical Area
    doc: Traceability Document Extensions GetAllChildren In the table, below the header row of the table.
    Tip: To organize the display of your preview, add one row from the Structure tab into Loop on Get All Children of doc: nod.
    nod: Traceability Document Attributes title First cell of the row in the table, in Loop on Get All Children of doc: nod.
    nod: Traceability Document Incoming relationships From destination Second cell of the row in the table, in Loop on Get All Children of doc: nod.
    des: Traceability Node's~destination Incoming relationships From Traceability Link Loop on From destination of nod: des
    lin: Traceability Link Outgoing relationships To source Loop on From Traceability Link of des: lin
    sou: Traceability Link's source Outgoing relationships To Traceability Node Loop on To source of lin: sou
    nod2: Traceability Node Attributes title Loop on To Traceability Node of sou: nod2