Lesson 2.5: Fix a defect

In this lesson, a team lead triages a defect, a developer creates a fix and delivers changes, and a tester verifies the fix.

About this task

Tip: You can use the “Defects blocking tests” lifecycle query and dashboard widget to triage defects.

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

  • Triage defects.
  • Fix defects.
  • Verify defect fixes.
  • Mark defects as verified.

Triaging defects

About this task

Marco triages the defect that Tanuj filed:

Procedure

  1. In the web client, in the upper-left corner, click the Home menu icon. From the list, under Change and Configuration Management, click JKE Banking (Change Management).
  2. Log on by typing marco in User ID and marco in Password.
  3. On the Dashboard, click the Testing tab. In the Defects blocking Tests widget, a new defect has been created called Donation amount is allocated to EACH organization, not split between them.
  4. Hover over the defect to view more information. The defect is related to the Allocate Dividends To Multiple Causes story.
  5. Click the defect link and review it.
  6. In the defect work item, click the Links tab to view relationships, including the affected story (Plan Item). Hover over the story to view its priority. This story and its related requirement are high priority.
  7. Triage the defect and assign the item to Deb to fix:
    1. Click the Overview tab.
    2. From the Priority list, select High.
    3. From the Planned For list, select Sprint 2.
    4. From the Owner list, select Deb.
    5. Add a comment about the urgency of fixing the defect.
  8. Save the defect
    Assign defect

Fixing defects

About this task

Typically, a developer uses the IBM® Engineering Workflow Management client to view assigned defects; however, for simplicity, a deep-dive exercise describes that task. In this section, you resolve the defect from the web client. To complete the tasks in the deep dive, skip the following steps, and go to the deep dive link at the end of this section.

Fix the assigned defect:

Procedure

  1. In the web client, in the upper-left corner, click the Home menu icon. From the list, under Change and Configuration Management, click JKE Banking (Change Management).
  2. Log out as Marco.
  3. Log on by typing deb in User ID and deb in Password.
  4. On the left sidebar, click the Mini Dashboard icon.
  5. In the Open assigned to me (current sprint) widget, click the link to the newly assigned defect, Donation amount is allocated to EACH organization, not split between them.
  6. Review the defect.
    Note: There are links to tests, the build, requirements, and other artifacts.
  7. From the Status list, change the defect state to Resolve, and save the defect.

Verifying defect fixes

About this task

Confirm the fix by rerunning the test execution:

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 Deb.
  3. Log on by typing tanuj in User ID and tanuj in Password.
  4. On the Project Dashboard, click the Execution tab.
    Note: On the Unblocked Test Execution Records widget, see that the Test was unblocked automatically.
  5. Click the unblocked Allocate Dividends to Multiple Causes Test Execution Record item, which opens the associated test case.
  6. In the Allocate Dividends To Multiple Causes test case, run the test again:
    1. In the toolbar, click the green icon; then click Run.
    2. In the window, leave New Test Case Execution Record.
    3. Set Test Plan field to Development Test.
    4. Click OK.
    5. For simplicity, pass all steps in the test execution.
    6. Click Show Results.
      Passed test case

Marking defects as verified

About this task

Mark the defect as verified:

Procedure

  1. From the Test execution result, click the link to the related Allocate Dividends To Multiple Causes test case.
  2. On the test case page, in the Overview, click Development Items.
  3. In the Development Items window, click the Allocate Dividends To Multiple Causes story link.
  4. In the story work item, in the Quick Information area, beside the Affected By Defect link, click the link to the defect (the number (1)).
  5. In the work item, from the Status list, select Verify and save the work item.
    Verified defect

Lesson checkpoint

In this lesson, you learned how to complete these tasks:
  • Triage defects.
  • Fix defects.
  • Verify defect fixes.
  • Mark defects as verified.