APP response performance test _

Reference documents: https://blog.csdn.net/xiaomaoxiao336368/article/details/83547318

First, in response to
the response time and the response speed of the software directly affects the user experience, if a software delay load does not come out, it will directly affect the Nikkatsu software, retained. So for a software to test the response speed is essential.

The main test points:
1, Cold start: first start intervals the app (just a start time, does not include the page loads)
2. Hot start: not the first time start-up time interval the app (just a start time, does not include the page loads)
3, complete start: fully loaded out from start to home time interval
4, start net: from launch to jump to the page is fully loaded out of time interval
5, no network boot: the time from launch to jump to the page is fully loaded out of the interval
(in the project, the main focus of the test is a cold start, warm start)

test method:
1, using the adb command
1) cold start
adb shell am start -W packageName / ActivityName ( absolute path, first Activity)

 

 

Meaning:
ThisTime: the Activity start time consuming;
TotalTime: Start the application itself time-consuming, ThisTime + application application start-up time and other resources;
WaitTime: the system starts the application time-consuming, TotalTime + system resources, start-up time

2) Hot Start: Start the adb command and then press the back button

 

 Test standard: Cold start time of less than 1.5s, the hot start no more than 1s.

3) fully started, no network boot, there are nets start packet capture by charles time to get started

charles is a very powerful tool for capture, in addition to intercepting the request can interface to a single pressure measurement, the parameter modification request and sends a request, and the analog or mesh, a weak network, 2G, 3G, 4G and the like. You can solve a lot of special test app.

 

2, AndroidStudio the Android Monitor, view the phone log system
Android Monitor There are five modules: logcat, memory, cpu, network , GPU
we can get the application response time by logcat (how to use the memory had introduced)

 

Guess you like

Origin www.cnblogs.com/danyuzhu11/p/11685572.html