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

How does iOS test Wechat Mini Game & Mini Program?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

PerfDog as a mobile full-platform performance test and analysis tool, developers can use PerfDog for performance data acquisition and analysis to improve the performance and quality of Mini Game & Mini Program. The following will teach you how to use PerfDog to test Wechat Mini Game & Mini Program hands-on through detailed instructions:

1. Log in to PerfDog's official website https://perfdog.qq.com/, and select the desktop application you want to download according to your PC platform

Windows platform: extract the download package and double-click to open the PerfDog.exe desktop application.

Mac platform: run dmg desktop applications directly.

2. Mobile phone USB connects to computer

Need the phone to trust the computer, and choose to trust the operation on the phone:

If this prompt appears on the PerfDog client, the phone connection is successful:

If there is a problem with the connection, please follow this post to troubleshoot one by one: https://bbs.PerfDog.qq.com/detail-128.html

3. Select mobile phone devices

Select a device:

Note: if you want to use WIFI testing, the phone and computer must be connected under the same WIFI/ hotspot.

4. Open Wechat and Mini Game:

Note: Mini Game only needs to be tested in the Wechat process selected by the Perfdog software.

Technical note: Wechat Mini Game & Mini Program, iOS and Android technology implementation principle is completely different, Android platform is to start an independent sub-process, but there is no independent process on the iOS platform. Mini Game & Mini Program is based on H5 development, so it uses the browser kernel. Wechat Mini Game & Mini Program uses its own browser kernel, while Mini Game Mini Program is running in the Wechat process, so you can test the Wechat process.

For high-level testing, when Wechat Mini Game starts to load, the system browser kernel webkit process will be used to pull up, so there will be a system browser kernel webkit process. WeChat Mini Programs rendering UI is rendered through the webkit process of the system browser. In summary, Mini Game generally does not need to pay attention to the system browser memory webkit process, Mini Program needs to pay attention to the system browser memory webkit process. Specific testing methods are described below, such as system process testing methods.

5. If you want to test WeChat Mini Programs, do not open WeChat Mini Programs for the time being, click on the list of applications, pull to the bottom, and click to expand system process.

6. Check whether there is an option of com.apple.WebKit.WebContent in system proces.

If you don't have the option of com.apple.WebKit.WebContent, open the Mini Program you want to test in Wechat, and then find and select the option com.apple.WebKit.WebContent in system.

If you have the option of com.apple.WebKit.WebContent, then remember the number after him, then open the Mini Program to be tested in Wechat, and select the com.apple.WebKit.WebContent that is greater than this number. (that is, find the latest com.apple.WebKit.WebContent) If there are more than one process pid that remembered the last WebContent last time, try one by one.

7. After selecting the correct Mini Game / Mini Program, click on the upper right corner to start the test.

PerfDog screen:

8. In the lower right corner, you can select the indicators to be tested:

Explanation of corresponding indicators: https://bbs.PerfDog.qq.com/article-detail.html?id=5

9. When the test is over, click pause at the top right to upload data.

Note: it doesn't matter if you forget to start recording data. Select the required data and right-click to upload the data:

10. After uploading, you can view the data on PerfDog WEB (https://perfdog.qq.com/mydata/cases):

Case detail page:

11. You can also compare and analyze the data:

Add comparison steps:

Comparison page:

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