Derive Test Cases
Drag & Drop
If your project already has test cases and requirements, you can establish relationships between them. Do this by dragging and dropping one or multiple test case entries onto a requirement entry. A dialog opens once you drop the test cases onto the requirement; click Yes to confirm that the correct test cases and requirements have been assigned to each other. To view which requirements have been assigned to a test case, open the editing dialog of the test case and go to the Verified Elements tab. Vice versa, to view which test cases have been assigned to a requirement, go to the Test Cases tab of the corresponding requirement.
Derive through Context Menu Commands
Test cases can also be derived from individual requirements. This can be done through the context menu command Requirement/ Derive Test Case. Upon executing the command, a dialog opens where you select a storage location for the test cases. Once you have decided on a target package, a form opens where you can define test steps and rename test cases when necessary. By default, test cases are automatically assigned the same names as the requirements from which they are derived.
This command is also available to execute through query context menus.
If you don’t want to derive test cases from individual requirements but rather from all requirements stored in a package, open the context menu of the package in question and execute the command Create/ Derive Test Cases. A dialog opens where you decide from which requirements the test cases should be derived, as well as where the test cases should be stored.
Derive Test Cases in Diagrams
When working in a Requirements Diagram, you can establish a relationship between a test case and a requirement with the requirement-verify relationship. Select the verify relationship option from the toolbar.