3.8. Requirements

Requirements are conditions which must be met in order for the product to be considered ready. A requirement can be linked to several test cases, which must be executed in order to fulfill this requirement.

In the course of this howto, we will create a requirement, link it to a test case and execute this test case.

The Requirements Page

Figure 3.11.  The Requirements Page


Procedure 3.3. Creating and linking a requirement to a test case

  1. Select the Define section in the topbar.

  2. Select the Requirements menu entry in the sidebar.

  3. Press the New button.

  4. Write The printer prints at least 10 pages per minute in the Name text field.

  5. Select High from the Priority dropdown list.

  6. Press the Save button.

  7. Press the icon of the requirement The printer prints at least 10 pages per minute.

  8. Select the Test Cases tab.

  9. Press the Add button.

  10. Select the test case Test if the printer prints at least 10 page per minute.

  11. Press the Add button.

[Note] Multiple Requirements

You can assign multiple test cases to the same requirement.

You can also assign test cases to multiple requirements!

The Requirements Details Page

Figure 3.12. The Requirements Details Page


Now we will execute the test case with which the requirement is assigned to.

Procedure 3.4. Executing a test case that is assigned to a requirement

  1. Switch to the Execute section in the topbar.

  2. Select the Run Test Case menu entry in the sidebar.

  3. Press the Execute button.

  4. Press the Execute button.

  5. Press the Passed button.

  6. Press the Yes button.

You have now executed a test case that is assigned to a requirement. Let's see the results of this test case on the requirements page.

Procedure 3.5. Showing the results of a test case assigned to a requirement

  1. Select the Define section in the topbar.

  2. Select the Requirements menu entry in the sidebar.

  3. Press the icon of the requirement The printer prints at least 10 pages per minute.

  4. Select the Results tab.

In the results tab, you can see the results of all test cases that are assigned to this requirement. Since we've executed a single test case, there is only one elment in this table. Pressing the icon shows you the details of this test case result.