Three-layer Management of Test Cases
Overview
Delivery challenges of cloud services:
- Efficient test case management and reusability, especially when a service has different delivery forms that need lots of same test cases.
- Fast delivery pace: monthly, weekly, or even daily version release.
- 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
- You have created a project. This chapter uses a Scrum project as an example.
- 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
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- In the navigation pane, choose .
- Click
on the right of Baseline. The page is displayed.
- Click
, enter a test version number (for example, 1.0), and click Save.
- Select 1.0 from the version drop-down list and click Create Plan. The Create Test Plan page is displayed.
- Set Name (for example, 1.0 Test Plan), Version (optional), Processor, Plan Period, Associated Sprint (optional), and Description (optional), and click Next.
- Select an execution mode as required and click Add Requirement.
- Click Save.
- On the test plan card, click Design. The Testing Case page is displayed.
- Select the target requirement in the requirement tree.
- Click Create Case and configure the parameters by referring to Configuring a Test Case.
- 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.
- Click
on the right of the version drop-down list. The page is displayed.
- Click
, enter a test version number (for example, 2.0), and click Save.
- In the upper right part of the case list, choose .
- In the displayed dialog box, click the Source drop-down box, and select the source version, for example, 1.0.
- Select an overwriting rule, select the test cases to be imported, and click OK.
- 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.
- In the navigation pane, choose .
- Select 2.0 from the version drop-down list and click Create Plan. The Create Test Plan page is displayed.
- On the test plan card, click Design. The Testing Case page is displayed.
- In the upper right part of the case list, choose .
- 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
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- In the navigation pane, choose .
- Click the version drop-down list box in the upper part of the page and select a version.
- Click Merge into Baseline on the right of the page.
- 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.
- Click OK.
Merging All Test Cases to the Baseline
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- In the navigation pane, choose .
- Click
on the right of the version drop-down list box. The page is displayed.
- In the Operation column of version 2.0, click
.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot