Pre-book on Android performance test power consumption (v)
This section discusses the last item in the performance test-traffic, of course, I refer to the performance test is for most applications, there may be some applications will focus on speed, weak nets and other tests, but this series of articles do not go to one by one
Flow test, also need to introduce a few nouns
- Moderate load: Apply normal operation
- High load: Application limit operation
The flow test includes the following test items:
- App first start traffic tip
- Application background running 2 hours of traffic value continuously
- Application of peak traffic in high-load operation
- Application of average traffic average during medium load operation
Flow testing is usually done using software, where we are generally divided into 2 categories:
- Use market-provided third-party tools for testing, such as Traffic PO
- Self-research tools for testing
Self-research tools are typically tested with 2 types of methods,
tcodumpget traffic by grabbing packets and then wireshake reading the packet information directly
- First get the information of the application under test
uid , can adb shell dumpsys package obtain and then before the operation of the application, we can adb shell cat /proc/uid_stat/uid/tcp_rcv adb shell cat /proc/uid_stat/uid/tcp_snd get to the beginning of the application to receive and send traffic, and then we operate the application, again through the above 2 command can get the end of the application to receive and send the traffic, by subtracting and getting the overall application of traffic consumption
Well, the flow test is here, the first exploration of the Android performance test is over, and next we will explore the Android security test, the following, please
This article reproduces Kasi's article, thanks Kasi's share, original address:
Https://testerhome.com/kasi
On the performance test of Android (vi)