Page response time Test in Android app app

Source: Internet
Author: User

Description: Only basic test logic is described here


  1. Sort out a list of top-level pages that the app needs to focus on

  2. Basic tools: UT (internal tools, inconvenient to reveal details)

  3. Introduce the Timeprofile class in the development code: This class is the top of the UT, exposing some simple time-of-day methods, start (), End (), and so on;

  4. In the corresponding code of the first level page, mainly refers to the activity class, the Oncreat () method in the body of the Initview () method call, before the start (), to record the current timestamp;

    Then, in the request callback function body of the onsucess () method inside the body, get to the back of the data, call method End (), record the time stamp;

    Finally, these 2 time subtraction, obviously, get the activity basic time;

  5. The relevant data obtained in step 4 is stored in the device's cache in a certain format;

  6. To the mobile phone in the WiFi environment (detection of the current network type), the stored local data, uploaded to the UT platform display platform for users to view ...




Ps:

In particular, it shows that only one test page is opened to the response time after the request data is returned;

There is still a lot of time to refine, such as API response time (minus the time before the API is called and after the data is successfully returned);

There is also a lot of testing space;



Page response time Test in Android app app

Related Article

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.