preface

Testing is inevitable in daily development.

For large factories, there will be a professional testing team, professional testing sister meticulous and perfect test every link, as far as possible to ensure that each business process can be a complete closed loop, and the software handled is enough to deal with some special scenarios.

For small workshops, there is also the existence of testing children’s shoes, the only defect is that the testing sister is just a simple manual process of combing and verification. It can only be said that closed loop through a software process is perfect, but in special cases, it is more awkward.

And small workshops, development in the daily development work also accounted for 90 percent of the testing work, or even 100 percent, for this situation, how to talk about software quality? Ah, also can’t say so absolutely, can be helpless a few more, the heart is willing and the force is insufficient.

Recently, the development of the small program is almost complete. I remember PerfDog I used before. Here is a test wave to see the effect.

I don’t think every article is a good one, but here’s what you can learn from this one:

  • What is an FPS? And a partial extension of the FPS.
  • PerfDog is simple to use, i.e. how to test wechat applets on iOS?

Record the tests and upload them to the cloud

Because the hack version of Mac Pro equipped by the company now has no more space after installing part of the working software, we can only download it again and experience it again to see what changes have taken place in PerfDog that we haven’t seen for several days. (PS: As if it updates things and I’ll know, hahaha)

For a hack Mac, 200 MB too small seems a bit big.

Download and install, register your account and log in, and connect your phone with USB in one go.

A brief description of the main points of this page, as shown below:

  • Area 1 shows the detected data corresponding to each indicator.
  • Zone 2 is the indicator control, where you can check the indicators you care about. (PS: This button is a little too obscure.)
  • Play in the upper right corner Press Yes to start/pause recording test data and upload it to the cloud for further analysis.

Those who are familiar with wechat applets know that wechat applets are based on H5, so the UI rendering of wechat applets is rendered through the system browser WebKit. However, Android and iOS platforms have some differences in implementation methods. The official note is that the Android platform is enabled with an independent process, while iOS is not enabled with an independent process.

Here choosing test application, need little programs run first, then in test application selection System. The Processes and find com apple. Its. WebContent choice, as shown below:

Two points need to be noted here (official intercept) :

  • . If there is no com. Apple. Its WebContent this option, then open the need to test in WeChat small programs, to locate and select the com in the system. After apple. Its. WebContent this option.
  • . If there is a com. Apple. Its WebContent this option, so remember the Numbers behind him, then need to test the WeChat opened small program, select is greater than the number of com. Apple. Its. The WebContent can be selected.

Then click the play button in the upper right corner to start recording test data. Click the play button again to upload to the cloud.

Finally, click the small cloud icon on the top right to quickly open the cloud platform for analysis.

Cloud analysis to locate problems

Open the cloud platform and show the result of a test we just uploaded, as follows:

To add an annotation for a data with a high peak value, double-click Settings.

Here are a few comments from the consumptive functions I set up for the project:

Brief introduction to FPS

FPS stands for Frames per second.

However, the small douyin videos we often watch, as well as the movies and series on a certain platform, are all composed of continuous pictures. It can also be simply understood that each picture represents each frame.

The human eye can process 10 to 12 still images per second. So, at 12fps or less, it’s a bunch of still images for our senses. Once the playback rate reaches 16 to 24fps, it’s a continuous scene, like a mini-video.

Here is a special cut of the old brother to the effect of the picture, to feel the next:

In frame rates, the following are common:

  • 24fps
  • 30fps
  • 60fps

What are the differences between these categories?

First of all, cut the effect of the elder brother, intuitive feeling:

The popular understanding of these FPS is how many images are played per second, and of course, the more images are played per second, the finer the effect and the better the feel. But the following volume problem, also can not be ignored.

FPS analysis

In Android, the full frame is 60 frames, and each frame is calculated by 1000/60 = 16.66, that is to say, if each frame is less than 16 ms, it means that the App is running smoothly, otherwise, it means that the App is stuck. IOS does the same thing.

After a brief overview of FPS fundamentals, looking back at our App, the best effect, the silkiest FPS is 60. At least that’s what I got from watching it.

Combining the metrics, 18 percent of the pages achieved 87.3 FPS and 25 percent achieved 84.5 FPS, while when it came to maps and loading large images, the overall average FPS dropped to 41.2.

Due to the current demo version, the specific content of the customer has not been finalized, about the large picture, look, 45 pictures, optimization plan, compression try.

As for the map operation, there is no better solution for the time being, let’s see what happens later.

End

In fact, to call it a test record, as the title suggests, is a bit of a stretch.

On second thought, it should be called the first battle of testing, or testing basic knowledge understanding is more appropriate.

One Android development, although now do everything. Non – professional test, hope big guy give advice ~

If you have a good test platform, please leave a comment

The resources

  • PerfDog
  • IOS how to test wechat small games & small programs?
  • What is the FPS frame count? What’s the difference between 24fps, 30fps, 60fps?
  • 4. APP FPS test
  • Do Apps & games need to pay attention to Jank lag and lag rate?