Help Center/ CodeArts TestPlan/ Best Practices/ Three-layer Management of Test Cases
Updated on 2025-07-08 GMT+08:00

Three-layer Management of Test Cases

Overview

Delivery challenges of cloud services:

  1. Efficient test case management and reusability, especially when a service has different delivery forms that need lots of same test cases.
  2. Fast delivery pace: monthly, weekly, or even daily version release.
  3. Multiple sprints in a single version release.

To help you cope with them, CodeArts TestPlan serves as a platform where you can manage test cases by service, version branch, and sprint by using the test case library, baseline versions, and test versions.

  • Test case library: a collection of valid test cases for all versions, including the latest verified test cases.
  • Baseline version: a collection of test cases for all versions, mainly for test design. In the baseline version, you can manage test design for requirements, specifications, as well as cases and adjust resource tree relationships. In the baseline version, you can view the latest test result of a test case, and test execution activity is not necessary.
  • Test version: under which test cases are executed and test problems and results are recorded.

CodeArts TestPlan supports management of multiple types of test cases throughout the lifecycle from test design to test result assessment.

Prerequisites

  1. You have created a project. This chapter uses a Scrum project as an example.
  2. You have added a requirement as a work item to the project by referring to Creating Work Items.

Creating a Test Plan Under a Test Version and Adding Test Cases

  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 Plan.
  3. Click on the right of Baseline. The Version Management page is displayed.
  4. Click , enter a test version number (for example, 1.0), and click Save.
  5. Select 1.0 from the version drop-down list and click Create Plan. The Create Test Plan page is displayed.
  6. Set Name (for example, 1.0 Test Plan), Version (optional), Processor, Plan Period, Associated Sprint (optional), and Description (optional), and click Next.
  7. Select an execution mode as required and click Add Requirement.
  8. Click Save.
  9. On the test plan card, click Design. The Testing Case page is displayed.
  10. Select the target requirement in the requirement tree.
  11. Click Create Case and configure the parameters by referring to Configuring a Test Case.
  12. View the created test case in the test case list of the test plan and version.

Importing Test Cases from Other Versions

A service may have multiple test versions, among which the test cases of the previous version may be inherited by the next one. CodeArts TestPlan enables cross-version test case importing.

  1. Click on the right of the version drop-down list. The Version Management page is displayed.
  2. Click , enter a test version number (for example, 2.0), and click Save.
  3. In the upper right part of the case list, choose Import > Import From Version.
  4. In the displayed dialog box, click the Source drop-down box, and select the source version, for example, 1.0.
  5. Select an overwriting rule, select the test cases to be imported, and click OK.
  6. The test cases are imported to the test case library of version 2.0. The test case library stores all test cases created in the current version or imported from other versions.

Importing Test Cases from the Test Case Library to a Test Plan

You can create more test plans as required in the current version and import test cases from the test case library of the version to the plans.

  1. In the navigation pane, choose Testing > Testing Plan.
  2. Select 2.0 from the version drop-down list and click Create Plan. The Create Test Plan page is displayed.
  3. On the test plan card, click Design. The Testing Case page is displayed.
  4. In the upper right part of the case list, choose Import > Add Existing Cases.
  5. In the displayed dialog box, select the test cases to be added from the test case library to the current test plan, select a requirement strategy in the upper left corner, and click OK.

Merging Test Cases of a Version to the Baseline

You can save approved test cases of other versions to the baseline version. These saved test cases are stable, making the baseline version the basis for future test activities.

Merging Some Test Cases to the Baseline

  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. Click the version drop-down list box in the upper part of the page and select a version.
  4. Click Merge into Baseline on the right of the page.
  5. In the displayed dialog box, all cases of the current version are listed. Select an overwriting rule and select the cases to be merged to the baseline.
  6. Click OK.

Merging All Test Cases to the Baseline

  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. Click on the right of the version drop-down list box. The Version Management page is displayed.
  4. In the Operation column of version 2.0, click .
  5. In the displayed dialog box, select an overwriting rule and click OK. All test cases of version 2.0 are merged to the baseline version.