< Previous | Next >

Lesson 3: Add existing test cases to a test suite

In this lesson you add existing test cases and their associated test scripts to the new test suite.

About this task

All test suites must include test cases, but the test cases may or may not have associated test scripts. You can create new test cases directly from the test suite or add existing test cases. In this tutorial, the test cases and test scripts have already been created for you and are included in the Development Test test plan.

To add the existing test cases to the test suite:

Procedure

  1. If you have not already done so, log in as the tester (User ID: tanuj, Password: tanuj). If you are prompted with a project login dialog box, select the JKE Banking (Quality Management) project.
  2. If you do not have the test suite open, in the main menu, click Construction > Browse > Test Suites.
  3. From the list of test suites, click (QM Tutorial) Regression Test Suite in the Name column. The test suite opens in the test suite editor.
  4. Click the Test Cases section.
  5. Click the Add Test Cases icon (Add). The Add Test Cases window opens and displays a list of all test cases in the project.
  6. In the Filter by Test Plan section, select Development Test. Selecting a test plan filters the list to display only the test cases that are part of the Development Test test plan. By including both the test cases and the test suite in the same plan, you can plan for the execution of the suite as part of the testing activities for the plan. The test suite execution records will run in the context of the test plan and test plan milestones. Also, all test suite execution results (including test case execution results) will be associated with the Development Test test plan.
  7. To find the first test case to add to the suite, in the Type Filter Text field above the list of test cases, type dividend. This filters the list of test cases to show only those with "dividend" in the name.
  8. Select Allocate Dividends to a Single Cause, and then click OK. The test case is listed in the Test Cases section of the test suite.
  9. Click the Add Test Cases icon again and add the Dividend Allocation by Percentage test case. The two test cases are displayed in the Test Cases section. In this scenario, and in many test suites, the order of the test cases is important. For example, you want to make sure that the functionality to allocate dividends by percentage works before you attempt to donate to a cause. Notice that the test cases are listed in the wrong order in the Test Cases section.
  10. Click Save.
  11. To change the order of the test cases:
    1. Select the Dividend Allocation by Percentage test case.
    2. Click the Move Up icon (Move test case up). The test cases are now in the correct order.
  12. In the table of contents, click Summary to return to the Summary section of the test suite.
  13. Now that the test suite contains test cases, you can modify the weight of the test suite to reflect the weights of the associated test cases. Click the Calculate weight icon. Notice that the test suite weight changes from 100 to 300. The test cases in the suite have weights of 100 and 200, so the new weight for the test suite is 300.
  14. Save the test suite.

What to do next

In the next lesson, you continue as the tester to create a test suite execution record.

Lesson checkpoint

In this lesson, you learned the following:
  • How to view the test cases that are included in test suite's parent test plan
  • How to add test cases to a test suite
  • How to change the execution order of test cases in a test suite
  • How to calculate the weight of a test suite based on the test cases
< Previous | Next >

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki