Executing a PerfTest Test Task and Viewing the Report
This section describes how to quickly execute a PerfTest test task and view the report.
Prerequisites
- You have registered a Huawei account and enabled Huawei Cloud services.
- Your account has permission to use CodeArts PerfTest. For details about how to authorize and bind account permissions, see Creating a User and Assigning CodeArts PerfTest Permissions.
Creating a PerfTest Project
- Log in to the CodeArts PerfTest console.
- In the navigation pane, choose PerfTest Projects.
- Click Create Test Project.
- In the displayed dialog box, enter a test project name (for example, Web-test) and description, and click OK.
Creating a Test Case
- Locate the row that contains the target PerfTest project, and click the test project name, for example, Web-test. The test project details page is displayed.
- On the Cases tab page, you can view the automatically generated default directory, sample test case, and sample request. The sample request is pre-configured with request information.
To modify the request information, click
to expand the request information page. After editing it, click Save. - Click Debug in the upper right corner of the page. On the displayed page, click Start to debug the test case.
- Click View log to view the test case debugging details.
If an error is reported in the debugging result, edit the case based on the log information and debug the case again until no errors are reported.
Creating a Test Task
- Click the Test Tasks tab.
- Click Create Task.
- Enter a task name, for example, taskA.
- Select Serial or Parallel as your execution policy. In this example, retain the default value.
- Serial: Test cases in the test task are executed in sequence.
- Parallel: Test cases in the test task are executed concurrently.
- Click Add Case. In the displayed dialog box, select the created sample case and click OK.
- Click Save. The test task is created.
Starting a Test Task and Checking the Test Report
- On the Test Tasks tab, select a test task, for example, taskA, and click
in the Operation column. - In the displayed dialog box, select the shared resource group provided by the system for Resource Group Type, select Confirm that this pressure test is approved and complies with local laws, and click Start.
- Click View Report to check the real-time report page.
You can also click
in the Operation column of taskA after the pressure test task is complete to view the offline test report.On the Overview page, click Download Report in the upper right corner to obtain a PDF file. Contact experts to analyze the performance bottleneck of the current system and provide improvement suggestions.
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