Adding test cases

Add a test case to define the set of conditions, actions, expected results, and other criteria used to determine if a product component works correctly and meets its specified requirements. Each test case should focus on one component. Your testing may require more than one test case per component.

1. Choose Create > Test Case. You can also click Add on the Test Cases list window.

The Add Test Case dialog box opens.

2. Enter a Summary to briefly describe the test. You can enter up to 255 characters.

3. Enter the general test case information in the top part of the dialog box. The fields depend on the information your team requires.

  • Type specifies the test case type, such as Functional or Regression.
  • Automated test indicates the test will be performed using an automated script. See Managing automated tests.

4. On the Detail tab, enter additional information about the test case, such as the estimated time to perform the test, a test description, scope, conditions that must be met before performing the test, and overall expected test results.

Tip:  You can use test variant field codes in test case fields and steps. When you generate test runs, field codes are replaced with the variant values. For example, if you have an Operating System variant with a %Z_OSVARIANT% field code and the Windows value is used to generate test runs, the field code is replaced with Windows in the test run. To add a variant field code, right-click the field or step and choose Insert Variant Field Code. Select a field code and click OK to add it.

5. Click the Steps tab and enter the steps to perform the test and the expected results. See Entering test case steps.

6. Click the Variants tab to select the test variants to include or exclude when test runs are generated for the test case.

Test variants are attributes of the tested application used to generate test runs. A test run is created for each unique combination of variant values selected when generating test runs. See Managing test variants.

7. Click the Files tab to attach automated scripts and other files testers may need to perform the test. See Attaching files.

8. Click the Folders tab to add the test case to a folder. See Adding items to folders.

Note:  You will use the Test Runs, Workflow, Links, and History tabs when viewing or editing test cases. See Viewing test cases and Editing test cases.

9. Click Add to save the test case and add it to the project.

You can also click Apply to save the test case and continue working on it. Click OK when you finish.

Tip:  Depending on user options, the Add Test Case dialog box may remain open after the test case is added. Click Cancel to close it. You can change the Add Multiple Test Cases user option to automatically close the dialog box after adding a new test case. See Setting add multiple items options.