Step 7: Managing Project Tests
CodeArts TestPlan provides a one-stop cloud test platform that integrates DevOps agile test concepts, helping to efficiently manage test activities and ensure high-quality product delivery.
This section describes how Billy manages the test period of a project, including creating and executing test cases and tracking the test progress.
Creating a Sprint Test Plan
After the requirements (stories) to be implemented in sprint 4 are determined (that is, Step 1: Managing Project Plans is complete), the tester can write test cases while the developer codes.
- Create a test plan.
- Go to the Phoenix Mall project and choose .
- Click Create Plan and configure test plan information.
- Basic information: Configure the following information and click Next.
Table 1 Basic information about a test plan Sub-Configuration Item
Suggestion
Name
Enter Sprint4.
Processor
Select Billy.
Plan Period
Use the same period as Sprint4 created in Req.
Associated Sprint
Select Sprint4.
- Advanced settings: Select Manual Test. Confirm that the requirements in the list are the same as those of Sprint4 in CodeArts Req, and then click Save and Use.
- Basic information: Configure the following information and click Next.
- Return to the Testing Plan page. You can find the newly created test plan Sprint4 in the list. The test plan is in the new state.
- Design test cases.
- In the test plan Sprint4, click Design.
- Expand the Requirements on the left of the page and find the story User can query network of all stores.
Click and choose Create Test Case.
Figure 1 Creating a test case
- Enter Store Network Query, edit the test steps and expected results by referring to Table 2, and click Save.
Table 2 Test steps Test Step
Expected Result
Opening the homepage of Phoenix Mall
The page is displayed.
Clicking the Store Network menu
The Store Network page is displayed. Location filtering is available on the page, and information about recommended stores is displayed at the bottom of the page.
Selecting City A
The store information list of city A is displayed.
- Create test cases for the other two stories in the same way.
- Choose
In the list, the status of the test plan Sprint4 is Designing.
from the navigation pane to return to the test plan list.
Executing a Test Plan
After developing story code and deploying applications on the test environment (completing Step 6: Deploying an Application (CCE) or Step 6: Deploying an Application (ECS)), the developer can set the story status to Resolved and set the story handler to the tester.
In this case, the tester can execute the test cases corresponding to the story.
This section uses the store network query function as an example to describe how to execute test cases and how to report bugs when test case execution fails.
- In the Phoenix Mall project, choose Work from the navigation pane, and click the Sprints tab.
In sprint 4, find the story User can query network of all stores and change the story status to Testing.
- Go to the Sprint4 in the upper part of the page. page and select
- In the list, click the case Store Network Query, change the status to Testing, and click Save.
- Click the Manual Test tab and click in the Operation column of the row where Store Network Query is located. The Execute window is displayed on the right.
- Execute the steps one by one in the test environment.
- Return to the test case execution window and record the execution result.
- In the table, set the actual result of all steps to Successful.
- In the upper part of the table, set the test case result to Successful.
- Select Set the case status to Completed.
- Click Save in the upper right corner of the page.
Figure 3 Successful test case execution
The status of the test case automatically changes to Completed. Go to 13 to continue the operation.
- Return to the test case execution window and record the execution result.
- In the table, set the actual result of step 1 to Successful.
- Set the actual result of step 2 to Failed and enter Redirection failure. 404 is displayed on the page.
- In the upper part of the table, set the test case result to Failed.
- Click Save in the upper right corner of the page.
Figure 4 Test case execution failed
- Click in the upper right corner of the page and choose Create Defect. The defect creation (work item creation) page is displayed.
- At the end of the text box in the lower left corner of the page, view the reproduction procedure for automatically filling in the defect.
Edit defect details by referring to Table 3 and click OK. The work item list page is displayed.
- In the work item list, find bug Store Network 404. Click the name and click the Associated tab. You can find the test case Store Network Query by expanding Associate with Test Case.
- Click the ID of an associated case to go to the case details page.
Click the Bug tab. A bug is displayed, that is, the defect created in 9.
- After the developer fixes the defect and verifies it, they set the case result by referring to 6 and set the corresponding defect status to Closed.
- Execute other test cases.
- When the status of all cases is Completed, choose to return to the test plan list where the status of Sprint4 is displayed as Completed.
Tracking a Test Plan
- Viewing the quality report
Through the quality report, the team can intuitively check the current progress of the test plan, including the requirement coverage rate, defects, case pass rate, and case completion rate.
On the Report in the card of Sprint4 to view the quality report.
page, click - Customizing reports
In addition to built-in quality reports, the team can customize statistical reports as needed.
The following describes how to customize a statistical report by taking test case execution statistics as an example.- On the Quality Dashboard page, click in the blank area in the lower part of the page and click Add Report. In the dialog box that is displayed, select Custom Reports.
- Edit the report information by referring to Table 4 and click Save.
- The Quality Dashboard page is displayed. You can find the new report at the bottom of the page.
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