Linking Test Cases to Requirements

Link test cases to requirements to track coverage and ensure full traceability throughout your testing process.

If you want to view test cases in the custom order defined in a Test Case module folder, browse the folder and clear Include entries from sub-folder.

Prerequisites

  • To link test cases, you must have Linking rights. Admins can grant these rights from Roles.

  • To sync test cases to their latest version, you must have Linking rights for both the Requirement and Test Case modules.

Linking Test Cases from a Release and Cycle

You can link test cases that belong to a specific release and cycle to a requirement.

  1. On the Link Test Cases screen, select Test Cases of Release & Cycle of this Requirement.

  2. Select the relevant release and cycle from the drop-down list, and then select the test cases to link.

Linking Test Cases by Entity Keys

An entity key is the unique identifier assigned to a test case, for example, FTR-TC-114. You can link the latest version of a test case to a requirement by entering one or more entity keys separated by commas.

Note

  • You can link a maximum of 500 test cases at a time.

  • QMetry skips the test case if it cannot find a matching key.

  • QMetry links a test case only once, even if the entity key appears multiple times.

  • If an older version of a test case is linked, QMetry skips the latest version and does not replace it.

  • QMetry skips archived versions and links only the latest unarchived version of the test case.

To link test cases by entity key, perform the following steps:

  1. On the requirement detail page, select the Test Cases tab.

  2. Click Link by Entity Key.

  3. Enter the test case keys separated by commas.

  4. Click Link.

QMetry links the test cases in the same order as the entity keys you entered.

To replace an older linked version with the latest version, see Syncing the Latest Version of Test Cases.

Viewing Linked Test Cases

After you link test cases to a requirement, you can review them and open any test case for more detail:

  • View the test cases linked to a requirement on the Test Cases tab.

  • The Test Cases field on the details screen displays the total number of linked test cases, including separate counts for archived and unarchived test cases.

  • Select a test case entity key to open the test case detail page in its project. This switches your current project to that project.

Customizing Columns on the Test Cases Tab

Use Arrange Columns on the Test Cases tab to add system and user-defined fields to the view. For more information, see Manage Grid Columns.

Note

  • The list shows the fields of the current project. For test cases linked from other projects, QMetry displays values only for fields common to both projects.

  • If test case dependency is enabled for the project, the Successor and Predecessor count columns are available.

  • Large text fields are not available as columns.

Understanding Test Case Order

QMetry maintains a predictable sequence for the test cases linked to a requirement:

  • The test cases linked to a requirement before this feature was introduced do not reorder them automatically. To change their sequence, select Change Order.

  • QMetry appends newly linked test cases to the list in the order you link them through the Link Test Cases screen or Link by Entity Key screen.

  • You can then manually reorder any linked test case using the Change Order option.

When you create a test suite from a requirement, or link test cases through a requirement, QMetry maintains the test case sequence defined in the requirement.

Syncing a linked test case to its latest version does not change its position in the list. This applies to both individual and bulk sync, regardless of any sort or filter you apply when you sync.

Changing Order of Linked Test Cases

Use the Change Order option to manually set the sequence of the test cases linked to a requirement.

The Change Test Case Order screen lists all test cases linked to the requirement, including both archived and unarchived test cases. Each row shows the sequence number, the test case Summary, its Entity Key, and Version.

QPro_TC_ChangeOrder.png

To reorder test cases linked to a requirement, perform the following steps:

  1. In the Requirement module, open the relevant requirement.

  2. On the Test Cases tab, click Change Order.

  3. On the Change Order screen, select the test case to reorder.

  4. Use the following options to move the test case:

    • Move to Top: Moves the test case to the first position.

    • Move Up: Moves the test case one position higher.

    • Move Down: Moves the test case one position lower.

    • Move to Bottom: Moves the test case to the last position.

    • Move to: Enter the target position number in the adjacent field to move the test case directly to that position.

Note

  • For dependency-enabled projects, the Change Test Case Order screen displays clickable Successor and Predecessor count columns.

  • QMetry does not support sorting on the Successor and Predecessor columns.

Syncing the Latest Version of the Requirement

SyncRQtoTC.png
  • To sync a single test case, click the blue Sync icon under Requirement version next to the test case.

  • To sync multiple test cases in bulk, select the test cases and click Sync Latest Version of Requirement.

For bulk synchronization, the system displays progress under Scheduled Tasks.

Syncing the Latest Version of Test Cases

Sync the test cases linked to a requirement with their latest versions directly from the Requirement Details page. When you create a new version of a test case, the requirement continues to link to the earlier version until you sync. You can sync test cases individually or in bulk, so you do not need to open each test case.

SyncLatestVersionofTC.png

Prerequisites

To sync test cases, you must have Linking rights for both the Requirement and Test Case modules. Admins can grant these rights from Roles.

Sync Icon

The Sync icon next to the test case version on the Test Cases tab shows whether a newer version is available:

  • Blue: A newer unarchived version of the test case exists. Click the icon to sync.

  • Grey: The linked version is already the latest.

Note

  • QMetry syncs only to the latest unarchived version and never links an archived version.

  • If the linked version is archived and a newer unarchived version exists, the icon is blue and you can sync.

  • Syncing keeps each test case in its current position in the list.

Syncing a Single Test Case

To sync a single test case with its latest version, do the following:

  1. On the Requirement Details page, select the Test Cases tab.

  2. Hover over the test case version and click the blue Sync icon under Version column.

  3. In the confirmation message, click Yes.

QMetry replaces the linked version with the latest version and displays a success message.

Syncing Test Cases in Bulk

To sync multiple test cases with their latest versions, do the following:

  1. On the Requirement Details page, select the Test Cases tab.

  2. Select the checkboxes next to the test cases you want to sync.

  3. On the toolbar, click Sync Latest Version of Test Case.

  4. In the Sync Latest Version of Test Cases with Requirement dialog box, click Yes.

QMetry runs the sync in the background. To monitor progress, see View Scheduled Tasks.

Note

  • The Sync Latest Version of Test Case button is unavailable until you select at least one test case.

  • If your selection includes test cases that are already on the latest version, QMetry skips them without a message and syncs only the test cases that have a newer version.

Unlinking Test Cases from a Requirement

To unlink test cases from a requirement, perform the following steps:

  1. On the Test Cases tab of the Requirement Details page, select the test cases to unlink.

  2. Click Unlink Selected.

  3. Click Yes to confirm.

The test cases are unlinked from the requirement.

Publication date: