The main points of the WeChat applet test process (dry goods)

Like apps, mini programs need to be reviewed by WeChat to go online. The version types of Mini Program products are divided into: development version, experience version, and official version. The development version and the trial version do not need to be reviewed. You only need to give the WeChat account permission and you can access them after scanning the QR code of the mini program.

In terms of purely functional testing, there is no difference between WeChat applet testing, APP testing, and web testing in terms of process and functional testing. However, due to the different carriers, there are some differences, which can be mainly reflected in several aspects:

1. System architecture

2. Performance

3. Compatibility

4. Testing tools

1. Permission

When testing the applet, you need to register the corresponding owner account on the applet platform, and you need to add the testers & developers and other WeChat accounts that need to experience the applet to the applet backstage at the first time, as shown in the figure

Insert picture description here

2. Functional test

In functional testing, we can use the mini program as a separate APP for testing, and design the black and gray box test cases of the mini program in accordance with the product requirement document, product prototype and design draft.

Three, compatibility test

Different mobile phone operating system inspections, different WeChat versions (test items released by the current WeChat version and upgraded WeChat post-test items), resolution (different mobile phone models, page picture display, etc.), compatibility of QR codes (generally small programs will There are two-dimensional code sharing, picture information shared with friends and two-dimensional code shared to the circle of friends display, whether to recognize, etc.)

Fourth, the system is compatible

The operating system mainly refers to the Android system and the iOS system. The Mini Program running in WeChat seems to have little to do with the mobile phone system on the surface, but the lower version of the mobile phone system will affect the UI display of the Mini Program. For example, when the iPhone SE system is 9.3.5, the Icon at the bottom of the product detail page cannot be displayed normally

Mobile apps generally have the problem of compatibility of mobile phone resolutions, and small programs also have the same problem. The current Android mobile phone resolutions on the market are 854 480, 960 540, 1280 720 , 1920 1080, 1334 750, 1136 640. We In the testing process, it needs to be fully compatible, mainly returning to the test cases at the UI level of the applet. The applet defines a new size unit rpx (responsive pixel) that can be adapted to screens of different sizes, for example:

Insert picture description here

Five, network test

Network testing can refer to APP testing, such as network status and environment switching, network disconnection, weak network testing by setting up a proxy, and so on. Mainly to investigate the operation of the applet under various network conditions.

Six, permissions

Permission refers to whether the access permission is authorized, so the permission test is divided into "authorized" and "unauthorized", so it is necessary to test the two cases of "access allowed" and "access not allowed" when jumping to the WeChat applet Whether all functions of the applet can work normally.

Seven, cache issues

There will be caches for apps and small programs, and small programs will have a local cache of up to 10M. The function of the cache is to improve the fluency of the program, reduce network requests, and save server resources. Sometimes users will clean up the cache. Test point: Clear Forced exit, background cleaning, shutdown, etc. during caching

Eight, WeChat applet pits

Small program platform external network domain name restrictions

Personal and overseas mini programs do not support web-view tags;

The opened page must be https service, including iframe nested;

To open the external webpage of the applet, you need to configure the business domain name in the background of the applet, download the verification file, and then put the verification file under the root directory of the website you want to jump to. That is to say, you want to jump to someone else's website. Need to get the consent of others inside;

There are also restrictions on the mini program to open articles on the official account. It must be an associated official account, which means that you cannot open articles on other people’s official accounts;

Nine, version restrictions

Development can be carried out in multiple branches for small program function development, but the pitfall is that only one experience version can be set, which causes a problem. For example, branch 1 and branch 2 are two different functions, and they are tested at the same time. , When two testers are required to test at the same time, the requirements cannot be met, as shown in the figure:

Insert picture description here

Solution

During the testing process, you can enable the developer mode for the tester’s test account, so that you can use the Debug mode for testing, as shown in the figure

Insert picture description here

Q: Will this method affect the test results?

A: Don't worry, there is no problem with the test results. This method has been practiced.

Sharing dry goods is not easy. If you want to know more about the wonderful dry goods of software testing, please leave a message to exchange, thank you for reading!

Guess you like

Origin blog.csdn.net/newdreamIT/article/details/100701702