Link test sheets to requirements

A requirement shows test coverage only when you link test cases to it. If you plan your tests with test case design, you can reserve those links before the test case exists.

When you map a test sheet to a requirement, Tosca Cloud adds a substitute link to the requirement for each test case instance in the test sheet. After you link a playlist that contains the matching test cases, you replace all substitutes with actual test case links in one action. You don't need to link each test case by hand.

Before you start

Make sure you have the following:

Map a test sheet to a requirement

Map a test sheet to a requirement, to show which requirement the test sheet covers. Tosca Cloud then adds one substitute link to the requirement for each test case instance in the test sheet. The substitute links reserve the coverage until your test cases are ready.

To map a test sheet to a requirement, follow these steps:

  1. On the Requirements page, right-click the requirement and select Map test sheet.

  2. Select a test sheet from the list and confirm. You can map more than one test sheet to a requirement.

  3. Select Save.

In a later step, you'll bulk link those test cases to the requirement.

Create a playlist with your test case instances

To link the test cases instances to a specific requirement, first create a playlist that contains all the test case instances from the mapped test sheet. You'll link this playlist to the requirements in the next step.

Replace substitutes with test cases

Replace the substitute links with test case links once your test cases are ready. This turns the reserved links into real links, so your requirements show coverage from your actual test cases.

You do this for a whole requirement set at once. Tosca Cloud matches each placeholder link with a test case from a playlist that you link to the requirement set.

To replace substitutes links, follow these steps:

  1. Link the relevant playlist to the requirement set.

  2. Right-click the requirement set and select Replace substitutes with test cases.

  3. Select Save.

Tosca Cloud checks all requirements in the set and replaces each substitute it can match with a test case link from the playlist. These links then behave like links you create manually.

Tosca Cloud marks the substitutes without a match as unresolved. To resolve them, make sure the playlist contains all the test case instances and try again.

What's next

After you link test cases from a test sheet, weight your requirements by risk so your coverage data reflects the risk of each requirement.