Lesson 2.1: Create test scripts

In this lesson, you complete test cases, test scripts, and test execution records to prepare for a build.

About this task

In this lesson, you learn how to complete these tasks:

  • Prepare for testing by confirming that a test case is linked to requirement and a story.
  • Add a test script to a test case.
  • Resolve a work item.

Creating test scripts

About this task

Create a test script:

Procedure

  1. In the web client, in the upper-left corner, click the Home menu icon. From the list, under Quality Management, click JKE Banking (Quality Management).
  2. Log out as Marco.
  3. Log on by typing tanuj in User ID and tanuj in Password.
  4. Click Construction > Browse > Test Cases.
  5. In the Filter field, type Allocate; in the search results, open the Allocate Dividends To Multiple Causes test case.
  6. In the test case, in the Table of Contents section, click Test Scripts.
  7. In the window, click the Add Test Scripts icon (green plus sign).
  8. In the Add Test Scripts window, select Allocate Dividends To Multiple Causes and click Add and Close.
  9. At the bottom of the test case, click Save.
    Test script window

Verifying test-case links

About this task

Verify that the test case is linked to a story and a requirement:

Procedure

  1. In the Allocate Dividends To Multiple Causes test case, in the Table Of Contents section, click Development Items.
  2. In the Development Items window, hover over the Allocate Dividends To Multiple Causes story to verify that the test case is linked to the story.
    Test case link to story
  3. In Table Of Contents section, click Requirement Links.
  4. In the Requirement Links window, hover over the Donor Chooses Multiple Organizations requirement to verify that there is a link to the test case (Validated By link) from the requirement.

Resolving a task

About this task

Resolve a task as completed:

Procedure

  1. Open the mini dashboard and find the My Tasks widget.
  2. In the My Tasks widget, click Detail the test case for Allocate Dividends To Multiple Causes.
  3. From the Status list, select Complete, and click Save.
  4. Optional: To explore how this status change affects the story on the Sprint 2 plan, complete these steps:
    1. In the work item, in the Quick Information section, click the story link to the parent work item.
    2. In the story work item, click the Links tab and note the strike-through on the task that you resolved.
      Note: If a separate browser tab or window opened for the work item, close it.
  5. Browse back to the mini dashboard. The task is removed from the My Tasks widget.
    My Tasks widget

Adding a test case to a build verification test suite

About this task

In this task, Tanuj creates and executes one test case. However, in a real project, you group multiple test cases together into an ordered list, so that they can be executed as a group. In Rational Quality Manager, this is known as a Test Suite. You can create test suites for any purpose, such as build verification suites, smoke tests, and regression suites.

Tanuj adds his new test case to an existing build verification test suite.

Procedure

  1. Open the test suite:
    1. Click Construction > Browse > Test Suites.
    2. Open the SVT Test - Money that Matters test suite.
  2. Add the new test case to the test suite:
    1. In the test suite, click Test Cases.
    2. Click the Add Test Cases icon in the toolbar above the list of test cases.
    3. Select the Allocate Dividends To Multiple Causes test case and click Add and Close to add the test case to the test suite.
    4. Save the test suite.

Lesson checkpoint

In this lesson, you learned how to complete these tasks:
  • Prepare for testing by confirming that a test case is linked to requirement and a story.
  • Add a test script to a test case.
  • Resolve a work item.