Updated on 2026-01-09 GMT+08:00

Test Cases and Bugs

When a test case fails to be executed, the test case is usually associated with a bug. You can create a bug or associate the test case with an existing bug.

The following uses manual test cases as an example.

Test cases can be associated only with Bug work items in a Scrum project.

Procedure

  1. Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
  2. In the navigation pane, choose Testing > Testing Case.
  3. Select a test case to be associated with a bug. You can create or associate a bug using either of the following methods:

    • Perform the following operations on the Testing Case page:
      • Click the association icon in the Operation column to associate an existing bug in the current project.
      • Click the more icon in the Operation column, and select Create and Associate Defects to create a bug as prompted.
    • Click a test case to associate it with a bug.

      Click the test case name. On the page that is displayed, select Defects and click Create and Associate Defects.

  4. After a defect is created or associated, view the defect information on the Defects tab page. You can click to disassociate the current defect.