Editing a Template

You can define your report structure within the Template Editor.

In this scenario, you create a table to insert the names of refined (previously named derived) requirements linked to requirements contained in a requirement specification.

Recommendation: When creating your template, follow these recommendations:
  • Rename the input parameter and the created iteration variables with explicit names, which follow convention rules. For more information, see Previewing a Report and Recommendations for Naming Conventions.
  • Enter a string in the box next to Apply in the Data tab, and then click Apply to narrow down the list of categories, methods, types, and variable names. You can enter the wildcard character '*' in the string.
  • Double-click a loop or a terminal element from the graphical area, to select the corresponding variable in the Data tab.
  • Double-click a variable from the Data tab, to select the corresponding loop or terminal data in the graphical area.

  1. To open the template, click Show Template next to the template in the Templates page.
    The Template Editor appears containing a tab named Getting Started.
  2. To insert a parameter of requirement specification type:
    1. In the Parameter area of the Properties tab, click New.
    2. In the Name box, enter reqSpec.
    3. From the Type list, select Requirement Specification.
    A new parameter named reqSpec appears in the Data tab.
  3. To insert a section for the requirement specification:
    FromActions

    Structures tab

    • Drag the Section element into the template name area in the Graphical area.

    • Drag the Text element into the section title area.

    Graphical area

    • Select the inserted text element.

    • Enter Requirement Specification followed by a space in the Text box of the Properties tab.

    Data tab

    • Expand the reqSpec variable and the Attributes folder.

    • Drag the Title method in the section.

  4. To insert an introduction paragraph:
    FromActions

    Structures tab

    • Drag a Paragraph element in the section under the section title.

    • Drag a Text element in the paragraph.

    Graphical area

    • Select the inserted text element.

    • Enter The following table lists requirement names: in the Text box of the Properties tab.

  5. To insert a table of covering matrix:
    FromActions

    Structures tab

    • Drag a Table element in the section.

    • Drag a Text in each header cell of the table.

    Graphical area

    • Select the first inserted text element.

    • Enter Requirement title in the Text box of the Properties tab.

    • Select the second inserted text element.

    • Enter Downstream requirement titles in the Text box of the Properties tab.

  6. To insert a loop on requirements in the table:
    FromActions

    Data tab

    • Expand the reqSpec variable and the Outgoing Relationships folder.

    • Drag the To Specification Structure method in the table below the header row.

      A loop on to specification structure appears in the table and the associated iteration rel variable appears in the Data tab.

    • Select this loop and enter specStructRel in the Variable box of the Properties tab, to rename the newly created variable. For more information about renaming, see Renaming Template Elements.
    • Expand the specStructRel variable and the Outgoing Types folder.

    • Drag the To Requirement method in the previous loop.

      A loop on to requirement appears in the loop and the associated iteration req variable appears in the Data tab.

  7. To insert the requirement names in the first column:
    FromActions

    Structures tab

    • Drag a Row element in the last inserted loop.

    Data tab

    • Expand the req variable and the Attributes folder.

    • Drag the Title method in the first cell of the row.

  8. To insert a loop on refined requirements in the second column:
    FromActions

    Data tab

    • Expand the req variable and the Outgoing Relationships folder.

    • Drag the To Downstream Requirement method in the second cell of the row.

      A loop on to refined requirement appears in the table and the associated iteration rel variable appears in the Data tab.

    • Select this loop and enter downReq in the Variable box of the Properties tab.
    • Expand the downReq variable and the Outgoing Types folder.

    • Drag the To Requirement method in the previous loop.

      A loop on to requirement appears in the loop and the associated iteration req2 variable appears in the Data tab.

    • Select this loop and enter refReq in the Variable box of the Properties tab.

    Structures tab

    • Drag the List element into the loop.

    Data tab

    • Expand the refReq variable and the Attributes folder.

    • Drag the Title method in the loop on refined requirements.

    Here is the result of the created template: