Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the Android app page load statistics tool?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Android app page loading statistics tool is what, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Tool: appium+mincap+opencv

Appium is used for automatic operation, minicap for screenshot, and opencv for image recognition.

Principle of page statistics

1.app startup: when the command is executed, it starts to count the start time when the image data matches.

two。 Click the button: after the button is clicked, the statistics starts to show that the page loading time is when the image data is matched.

Statistical reasons for using image recognition:

1. Recognition speed because of the same conditions, appium to identify an element of about 200ms-800ms, and image recognition only between 30-100ms, I said that I test the average, so image recognition is more reliable, but also because the screenshot speed is fast, in the test report, start the app picture, how can there be a black picture, this is because you can not see the naked eye at the moment

two。 The contrast picture of image recognition is loaded with data, and the picture is the same as what we see, so the data is closest to the user's visual perception.

Data accuracy:

The method of image recognition is screenshot and matching, which is equal to the last time when the match is successful, only the screenshot time is counted, not the cumulative matching time, which is accurate, and the problem of out of sync between activity and page rendering is solved.

In addition: in the tool, the process of loading each page is to obtain image data, accurate to milliseconds, you can accurately judge from the report whether the page has been loaded and whether the time is right.

The loading time is determined by three factors: app itself, network and mobile phone performance.

Factors for attention in tool operation:

1. To select the screenshot of the image loaded by the data, so that the page loading time is the most accurate

two。 The data in the screenshot is dynamic, so pay attention to whether the data has changed every time the use case is executed, otherwise the execution will fail.

3. The script has the highest matching degree according to the model. If you change the phone, you may have to take a new screenshot.

There are too many details about the design principle of the overall tool and script. Let's just take a screenshot and introduce the practical steps of the tool.

1. Page identification elements, through the elements loaded by the page, screenshots, and then saved, used for screenshot comparison

two。 Script

3. Execution

4. Report, showing the corresponding screenshot data and time, and screenshots are also convenient to confirm whether all the data is loaded on the page to ensure the correctness of the data.

For more information, please see:

Note: this tool is a branch from 4399AT, so it can be used directly if you have built 4399AT before.

After reading the above, have you mastered the method of Android app page loading statistics tool? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report