☁️Integrating CodeArts PerfTest Cases into TestPlan

Ertugrul Basar
Huawei Developers
Published in
5 min read3 days ago
PerfTest — TestPlan

🔦Introduction

Hello everyone! In today’s article, we’re going to explore CodeArts TestPlan and its implementation with CodeArts PerfTest test cases. Hello everyone! In today’s article, we’re going to explore CodeArts TestPlan and its implementation with CodeArts PerfTest test cases. In today’s fast-paced software development landscape, ensuring the quality and performance of applications is paramount. CodeArts TestPlan, a comprehensive test management platform, offers a robust solution for streamlining your testing process. By integrating CodeArts PerfTest, you can effectively evaluate the performance of your applications under various workloads. In this article, we’ll delve into the steps involved in creating a CodeArts PerfTest task within CodeArts TestPlan, providing you with a clear and concise guide to leverage this powerful tool. But before we delve into the steps, let me provide a brief overview of CodeArts, CodeArts TestPlan, and CodeArts PerfTest.

CodeArts: It is a one-stop DevSecOps platform that provides out-of-the-box cloud services for requirement delivery, code commit, check, build, verification, deployment, and release throughout the entire software lifecycle. It consists of the following services: Req (Project Management), Repo (Code Hosting), Check (Code Quality), Build (Code Build), Artifact (Build Hosting), Deploy (Build Deployment), Pipeline (Continuous Delivery), TestPlan (Deployment Test).

CodeArts TestPlan: It is a comprehensive test management platform developed by Huawei, encompassing the entire process from test plan creation to test evaluation. Drawing on Huawei’s years of experience in high-quality software testing, the platform aims to assist enterprises in conducting collaborative, efficient, and reliable testing activities prior to product release.

CodeArts PerfTest: It provides performance test services for cloud applications that are built based on HTTP, HTTPS, TCP, UDP, HLS, RTMP, WebSocket, MQTT, or HTTP-FLV. CodeArts PerfTest quickly simulates service peaks with a large number of concurrent users. It allows you to define the contents and time sequences of packets and supports complex combinations of multiple transactions. After tests are complete, CodeArts PerfTest provides professional test reports to evaluate your service quality.

💻Demo

After accessing CodeArts TestPlan, click on “Create Plan”.

Creating a Plan — 1

Next, on the basic information page, fill in the name, processor, and plan period.

Creating a Plan — 2

Select the execution modes. For this exercise, we’ll create a CodeArts PerfTest task, so I’ll proceed with only the Auto Performance Test option selected.

Creating a Plan — 3

Once you’ve created the plan, it’s time to create a case. Click on “Create Case” as shown in the screenshot below.

Creating a Case — 1

Fill in the required information and then click on “Save and Write Script” to configure the case.

Creating a Case — 2

A pop-up window will appear. Click on “Edit Script” to be redirected to CodeArts PerfTest.

Creating a Case — 3

Next, we need to add a case for the PerfTest side. Click on ‘Add Case’. This will help us to add a case to the PerfTest project that is automatically created after we created the testing plan few steps earlier.

Creating a Case — 4

A pop-up window will appear. Click on “Create Case” to be redirected to the PerfTest case section.

Creating a Case — 5

Now, it’s time to configure the PerfTest case. Here, you’ll determine important information, such as where to send the package, the response timeout, and more. For more detailed information, refer to this article, which provides in-depth coverage of CodeArts PerfTest.

Creating a Case — 6

Next, select the cases as shown in the screenshots below.

Creating a Case — 7
Creating a Case — 8

Next, start the task by clicking on the button shown in the screenshot below. Then, wait for it to finish.

Running the Case — 1

Once it finishes, you can view the task results. As you can see, the task I created in this demonstration has been completed successfully.

Running the Case — 2

Finally, you can view the reports for the tasks you’ve run. Here’s an example from a few executions of the task I created.

Execution Report

👉Conclusion

In conclusion, CodeArts TestPlan provides a comprehensive platform for managing your testing process, from initial planning to final execution. By integrating CodeArts PerfTest, you can effectively evaluate the performance of your applications and identify potential bottlenecks. This powerful combination empowers you to deliver high-quality software that meets the demands of modern users. With CodeArts TestPlan and PerfTest as your testing tools, you can streamline your development process and ensure the success of your projects.

💁References

--

--