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)