Mobile App Special test-preparation work (i)

Source: Internet
Author: User

First, the business scenario

Front Desk: App activity at the front end, user access to app use

Backstage use: The app runs in the background, but some scenes trigger app-related features

Background standby: App running in the background, only the most basic heartbeat and so on.

Second, the test frequency

• Which versions are tested? What are the functions (core, common, very useful) to be measured in this regression? What special?

• Each test item, such as:

Response Time: First boot (cold), non-first start (hot), App Interface (control) toggle

Memory &CPU& Traffic: Idle (silent), light operation (Operation Interval 5-10s), heavy operation (operation interval 1s)

Third, data collection

Test metrics: response time , memory ,CPU,FPS, power , traffic . 6 x

Front desk use: all test

Backstage Use: unexpected accidents

Background standby: Unexpected accidents

"Prep" a way to get the app's startup activity

1. Search app : adb shell PM List packages-f retrieves all the apps in the current phone

Linux/mac adb shell pm List packages–f | grep ABC retrieves the application of the package name with ABC in the current phone

Windows adb shell pm List packages–f | findstr ABC Below is a mix of grep and findstr, please identify.

2. Install the app to your phone:

@adb install-r \\10.206.69.73\ outsourcing work record \ Test Team \youdaonote.apk

3. Filter the application:

Installed package name in the phone application with the keyword "Youdao": adb shell pm List packages–f | Findstr Youdao

Get: package:/data/app/com.youdao.note-1/base.apk=com.youdao.note

4. Pull the mobile app to the appt root directory on the PC side:

ADB pull/data/app/com.youdao.note-1/base.apk aapt

5. Enter AAPT:

Enter the path to the Aapt.exe in the PC, such as:

Cmd.exe input CD D:\Program files\android-sdk\build-tools\23.0.1

6. Query The app's startup activity

Windows:aapt dump badging base.apk | Findstr launchable-activity

Linux/mac:aapt dump badging base.apk | grep launchable-activity

Note: The APK was previously placed in the appt root directory.

Get:

Launchable-activity:name= 'com.youdao.note.activity2.SplashActivity ' label= ' I con= '

Then get the app startup activity as: com.youdao.note.activity2.SplashActivity

Mobile App Special test-preparation work (i)

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.