Creating test cases

Test cases describe what you are going to test.

About this task

Typically, one or several test scripts can be associated with a test case and one or several test execution records, which are often used to run a test.

To create a new test case:

Procedure

  1. Point to the Construction icon (Construction), and click Create Test Case.

    The new test case opens, with a Table of Contents on the left and an editor on the right.

  2. At the top of the new test case window, enter a name for the new test case.
  3. Select a test-case template from the list.
  4. Complete the test-case Summary section or assign the Summary to another team member to complete.
  5. Optional: To complete the test case Summary yourself:
    1. Make a selection in Category, Function, and Theme.

      You can use these attribute categories to organize your test cases into various groups that can be sorted. You can also add your own categories.

      To add new categories, functions, and themes, or to add your own test case category types, click the Manage Test Case Categories icon (Manage category).

    2. Assign a numerical value for the relative weight of the test case.

      You can use the weight as a means of tracking the relative difficulty or importance of the test case. A test case that requires twice as much time to execute could have double the weight as another test case.

    3. Add a description of the test case.
  6. Optional: To assign the Summary section, or any section of the test plan, to another team member to complete:
    1. Click Work Item: Create to open the Create Work Item window.
    2. In Summary, enter a summary of the work item.
    3. In Owned By, select an owner to which you want to assign the work item.
    4. In Due, assign a work item due date.
    5. Click OK.
  7. Complete the remaining test case sections as needed:
    • Provide additional detail about the test case in the Test Case Design window.
    • Set up a formal review process for the test case.
    • Associate requirements with the test case.
    • Define test case preconditions and postconditions.
    • Define the expected test case results.
    • Associate a test script to the test case or create a new manual test script.
    • Generate or create test execution records for the test case.
    • Attach related documents to the test case.
  8. Optional: Click Manage Sections to add your own, customized test case sections or to remove unrequired sections.
  9. Click Save.
  10. At any point after you create the new test case, you can add it to one or more test plans.
  11. Optional: Click the Print View icon (Print view) in the upper right corner of the test case to display a printable version of the test case.
  12. Optional: Click the Lock icon (Lock test artifact) in the upper right corner of the test case to make the test case read-only. After the test case is locked, only you or an administrator can unlock it. To unlock the test case, click the Unlock icon (Unlock test artifact).
    Note: You are required to provide an e-signature this action by providing your password.

Feedback