You can generate test cases for one, several, or all the
requirements that are displayed in the View Requirements editor. You
can generate one test case for each requirement, which results in
multiple test cases and you can generate one test case to cover multiple
requirements.
About this task
To create test cases from one, several, or all the requirements:
Procedure
- Point to Requirements (
), and click View Requirements.
- To create one test case for one requirement:
- In the View Requirements editor, select one requirement,
and then click the Create Test Case(s) from Requirement(s) icon (
). The Create
Test Case wizard opens.
- Type a name for the test case. This field is required.
Optionally, type a description for the test case.
- In Weight, accept the default
of 100 or edit it as needed. This field is also required.
- You can accept the default values for the rest of the
fields or update them as needed, and then click OK. If you leave the Edit new test case check
box selected, after you click OK, the new test
case opens. You can edit the test case as needed. If you click Requirements in the table of contents, the Requirements
section of the test case opens and the requirement you selected in
step 1 a. opens. If you clear the Edit new test case check box, after you click OK, a message
saying that the test case has been created is displayed.
- To create one test case to cover more than one or all requirements:
- In the View Requirements editor, select more than one
or all the requirements, and then click the Create Test
Case(s) from Requirement(s) icon (
). The Create Test Case wizard
displays.
- Click Create single test case for all requirements.
- Type a name for the test case. This field is required.
Optionally, type a description for the test case.
- Weight is also a required field.
Accept the default of 100, or edit it as needed.
- You can accept the default values for the rest of the
fields or update them as needed. Click OK.
If you leave the Edit new test case check box
selected, then after you click OK, the new
test case displays. You can edit it as needed. If you click Requirements in the table of contents, the Requirements
section of the test case displays and the requirements you selected
in step 2 a. display. If you clear the Edit new test case, after you click OK a message displays saying
that the test case has been created.
- To create individual test cases for multiple requirements:
- In the View Requirements editor, select more than one
or all the requirements, and then click the Create Test
Case(s) from Requirement(s) icon (
). The Create Test Case wizard
opens.
- Click Create test case per requirement. The Name test case same as requirement check
box is selected by default. If you clear the check box, the test cases
are all named Test case for requirement. You can optionally select a test plan and associate
the test cases with it.
- Click Next. A list of generated
test cases is displayed.
- Click Finish. If the View newly created test cases check box is selected,
the New Test Cases for Requirements editor opens. You can
complete these actions in this editor:
- Run a test case
- Manage test case categories
- Change the suspect attribute
- Create a manual test script from a test case
- Delete test cases
- Print a PDF of the test case.