Linking tests to requirements

After you import requirements into your project, you must configure the test script file to link a test or a service to the requirements.

About this task

In an edited unit test file, you can use the REQUIREMENT instruction in a TEST declaration or in a SERVICE declaration to link the test or all the tests in a service. The name of the requirement is the requirement ID.

Procedure

To link a test to the requirements, follow these steps:
  1. In the Project Window, double-click the test script file to edit it.
  2. In the edited test script, enter the instruction REQUIREMENT in a TEST declaration or in a SERVICE declaration.
  3. Enter the ID of the requirement as the requirement name.
  4. Save the updates and close the file.

What to do next

After you complete the requirements declarations in the test script file, you can generate a requirement traceability matrix. See Generating a requirement traceability matrix report.