About Test Cases

A test case defines a scenario for validating system requirements. A test case validates one or more requirements contained within the requirements specification that is linked to the test specification.

This page discusses:

See Also
Creating Test Cases
Linking and Unlinking Test Cases
Revising Test Cases
Changing the Test Case Maturity Level
Deleting Test Cases
In Other Guides
Baseline Content Categories

A test case consists of a set of input values developed for a particular objective or test condition. For example, a test case can exercise a particular program path or verify compliance with a specific requirement.

Copying Test Cases

You can copy a test case to create a duplicate with identical attributes. This is helpful when you want to run similar tests with test cases that differ only by one or two variables.

Linking Test Cases

You can also link test cases to test scripts and test executions to further define your test procedures and capture the results of the tests. In the following example, the test specification TS-New is linked to Test Spec A. TS-New contains four test cases: TC1, TC2, Copy of TC1, and Copy of TC2. Test Spec A contains three test cases: Test Case 01, Test Case 02, and TC1. The test case TC1 is shared between both TS-New and Test Spec A. The Details pane displays the shared test case status in the informational note highlighted in blue.

Note: You can copy and link test cases to test specifications even when the linked requirements are unavailable from the target test specification. In this scenario, Validation and Verification Strategy warns you that the app cannot find the requirements:

Comparing Test Cases

You can use the Compare app to compare the contents of two test cases in a dedicated comparison window. This is particularly useful when comparing two revisions of a test case to identify differences in maturity state and attached test objects. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Comparing the Structure of Objects and Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Comparing the Properties, Classification, and Effectivities of Objects.

Revising Test Cases

You can revise a test case to create a newer version for testing. Revising a test case retains all requirements and scripts linked to the original test case and all prerequisite dependencies of the original test case.

You can revise (or revise and replace) multiple test cases at once. In the figure below, you have multiselected FS Test Case 01 and FS Test Case 02. The toolbar changes to include only allowable actions; in this case, you can change the maturity state, revise, or delete the multiselected test cases.

In the following figure, FS Test Case 01 and FS Test Case 02 are at revision 1 in the tree; however, the Revise icon indicates that a higher revision exists (resulting from your Revise action). If instead, you revised and replaced the test cases, the Revise icon does not display, and the revision label shows as 2 in the column.

Note: The Revise action is available from both the Overview pane and the Requirements view.

Revising and Updating Test Cases when Requirements Change

When newer revisions of the requirements are available, you can update or revise test cases. In the following example, you can use the new Update Test Case Mapping to Requirements command to update the test case mapping:

Here, the Nose cone assembly and Payload test cases are linked to requirements that have been revised. You can revise requirements when a test case is in the Frozen state. You can update requirements when a test case is in the In Work state.

After you select both test cases and run the update, Validation and Verification Strategy updates the Review pane. The display indicates the most recent revision number for the test cases and shows the revised and updated test cases:

In this example, the Nose cone assembly is in the Frozen state. As such, the app creates a revision of the Nose cone assembly test case. The update process then links the latest requirement to the newly revised test case object. This new test case version is linked to the latest version of the test specification. The figure above shows that the Nose cone assembly test case increments from revision 1 to revision 2.

Effectivities for Test Cases

Effectivities define the validation condition of configured objects, in terms of variability, evolution, and applied changes. Assign effectivities to child objects of a model that is selected as the configuration context on an object.

You can define variant, option, and evolution effectivities on test cases when the parent test specification is configured. In addition, you can copy effectivities from one test case to another.

For more information, see Defining and Editing Evolution Effectivity and Defining and Editing Variant/Option Effectivity.

Attachments and Deliverables

You can link attachments and deliverables to the test case. Attachments and deliverables are any platform objects that serve as supporting documentation. It is often helpful to attach supporting documentation to test objects that might need to circulate for review outside the platform to other users. For example, you might need formal approval by users outside the platform when transitioning from a legacy file-based system.

For more information, see Editing Test Cases.

Test Cases and Responsibilities

Test cases (and all test objects) belong to specific content categories. The category of content, along with your responsibility, determines what actions you can take on the various types of content.

To create a test case, you must have the Author responsibility (at a minimum).