On the performance test of Android (vi)

Source: Internet
Author: User

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:

    1. Use market-provided third-party tools for testing, such as Traffic PO
    2. Self-research tools for testing

Self-research tools are typically tested with 2 types of methods,

    1. tcodumpget traffic by grabbing packets and then wireshake reading the packet information directly
    2. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.