Requirement Element

NI Requirements Gateway 2018 Help

Edition Date: March 2018

Part Number: 371714F-01

»View Product Info
Download Help (Windows Only)

A requirement expresses a need or constraint, such as a technical constraint, cost, or deadline. For example, a requirement element may interpret the text [REQ: reqid], where reqid is the requirement ID.

Options

Specify the following requirement element options on the Types pane of the Configuration dialog box.

Example Requirement Expression

The following table shows a typical requirement statement in an Excel source document that contains a requirement ID and requirement text.

Requirement ID Requirement Text
REQ1 This is the requirement text.

The following figure shows the intermediate file for the Excel source document.

Capture the requirement ID and text using the following separate regular expressions:

  • Requirement(REQ\d+) specifies a field to capture the requirement ID, like REQ1.
  • Text\|2 ([^\|]+) specifies a field to capture the requirement text in the second column. This expression specifies that the text can contain any character except the vertical bar | because the vertical bar indicates the beginning of a table description.

Alternatively, complete the following steps to specify a single regular expression to capture both the requirement ID and text.

  1. For a requirement element you create, enter the expression (REQ\d+)[\t]*\|2 ([^\|]+) in the Regular expression control on the Analysis tab of the Types pane. This expression defines the following fields:
    • (REQ\d+)
    • ([^\|]+)
  2. Right-click the Regular expression control and select Field 1»Identifier from the context menu to assign the first field to ID.
  3. Right-click the Regular expression control and select Field 2»Text from the context menu to assign the second field to Text.

Typically, you capture a requirement ID first, and then the requirement text. However, you may specify the requirement text before the ID, as shown in the following table.

Requirement Text Requirement ID
This is the requirement text. REQ1

Capture such a requirement by using the expression \|1 ([^\|]+)\|2 (REQ\d+) and assigning the first field ([^\|]+)to capture the text and the second field (REQ\d+)to capture the ID.


See Also

WAS THIS ARTICLE HELPFUL?

Not Helpful