DEV Community

Cover image for HarmonyOS Development: Stability Testing in DevEcoTesting
程序员一鸣
程序员一鸣

Posted on

HarmonyOS Development: Stability Testing in DevEcoTesting

Foreword

version based on 5.0.7.200

devEcoTesting, a special integrated testing tool, had a simple appetizer introduction before, which mainly introduced the screen projection function of the equipment and the acquisition of Dom tree structure of the page. In fact, it is only the function of the tip of the iceberg. After all, it is a special testing tool launched by Hongmeng. Its functions are far more than these. Today we will bring one of its intelligent testing functions, stability testing .

Stability testing

after experiencing the stability test function, it can only be described in two words, because it is simple enough to use, intelligent enough to function, and comprehensive enough to analyze. It can provide us with application-oriented intelligent traversal test methods and stability test model management capabilities. In addition, we can also manage the required models according to personal needs to help us identify abnormal problems that affect the application and system stability, ultimately achieve the purpose of improving the quality of software development.

Open DevEcoTesting, the second option is stability testing, after clicking, currently only one test capability is provided. Application Exploration Testing this is also the focus of this article.

Image description

Application Exploration Testing according to the official interpretation, the main ability is to provide intelligent traversal methods based on expert experience, and then use intelligent AI to realize scene intelligent perception and control semantic analysis, and drive the efficient execution of tests.

After clicking on the application exploration test, you will get to the page for creating tasks, which is the following page:

Image description

It should be noted that the application exploration test can be applied to simulators and real machines. If it is a real machine, you need to connect USB.

Create Task

creating a task is very simple. You only need to fill it in according to the prompts. What you need to pay attention to is the test duration option. This is more important. The official suggestion is that the total duration of the task is not less than 1 hour. If the duration is too low, the test results are not representative.

Select one item for the model. When creating the task for the first time, this item is not available. There is no need to select it. When the task is created later, the traversal model will be automatically generated. The existing model can be selected to help improve the traversal efficiency.

After the test device selects the currently online device, select the application you want to test, and the current information will be displayed on the right after selection:

Image description

advanced Configuration

there are three advanced configurations that can be freely configured:

Image description

screen capture interval refers to the length of time to wait for the page to load after the operation. For example, if you set 2 seconds, you will get a screenshot of the page 2 seconds after the operation is executed and then perform AI semantic analysis. There is a special situation that needs to be known, that is, web applications may have page network loading delay, or the application's page rendering time is long. In this case, we need to set the screen capture interval according to the page delay.

The preprocessing option will grant the application to be tested permissions such as location, notification, and network, and will automatically skip the boot page and log in to the Huawei account. It is important to know that if the above operations have been completed, it is recommended to check No, which will speed up the next test process.

The arklayout is mainly used to test the basic quality of UX. If necessary, check it.

After filling in the above information, click Create Task directly and the test task will begin.

Image description

Wait a moment, will enter the intelligent test:

Image description

it will intelligently traverse the PATH map of the current application and execute them one by one:

Image description

after the test is completed, the current test result is directly returned:

Image description

of course, this list of questions is also included.

Image description

In the upper right corner, you can view the log of this execution or export the report.

Image description

Related Summary

the main purpose of dedevecotesting is also for Software Testing. It allows developers to perform test tasks with one click without complicated configuration. At the same time, it provides test reports and analysis. It is a very convenient tool for both developers and test students.

This article label: Hongmeng Development Tool/DevEco Testing

Top comments (0)