Monkey test strategy, Monkey Test 2
I. Classification
The monkey test uses different test scenarios for different objects and for different purposes, first of all, the object, purpose, and type of the test are as follows:
The types of tests are divided into: application stability testing and stress testing
Test objects are divided into: single apk and APK collection
The objectives of the test are: problem-solving tests (ignoring exception tests) and acceptance tests (tests that do not ignore exceptions)
Two. Application Stability testing:
1. For a single apk
(1) Do not ignore exceptions
When performing an acceptance test of a single apk, a single apk is used and the command execution does not ignore the exception.
For example:
Monkey-p com.android.mms–throttle 1000-s 100-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &
(2) Ignore exceptions
When a single apk problem-solving test is performed, a single apk is used and the command to ignore the exception is executed, so that you can discover multiple issues in the application during one execution.
For example:
Monkey-p Com.android.mms–throttle 1000-s 100–ignore-crashes–ignore-timeouts–ignore-security-exceptions– Ignore-native-carshes–monitor-native-crashes-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &
2. For multiple apk
(1) Do not ignore exceptions
For example:
Monkey–pkg-whitelist-file/data/whitelist.txt–throttle 1000-s 100-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &
(2) Ignore exceptions
For example:
Monkey–pkg-whitelist-file/data/whitelist.txt–throttle 1000-s 100–ignore-crashes–ignore-timeouts– Ignore-security-exceptions–ignore-native-carshes–monitor-native-crashes-v-v-v 15000 >/mnt/sdcard/monkey_ Test.txt &
Three. Application Stress/Robustness Testing
The application's stress/robustness test, which is primarily to shorten the delay between events and events in the Monkey test, verifies that the program works correctly during a fast incident response. This stress/robustness test is performed primarily against a single apk, and we can set the value of –throttle to 500 or smaller, typically using a 500 millisecond delay event.
In the APK collection test, for the high-frequency apk, the long-used apk will be included in the execution of the middle of the application.
APK category specific:
APK for high frequency use: Phone, Contacts, Message, Settings, File Manager, Gallery, Input Method
Long-time apk such as: Phone, Browser, Music player, Camera, Video player, Email, Chat
Other apk such as: Calendar, Notepad, Calculator, FM Radio, Google Search
Monkey Test Strategy Tutorial-android,monkey test "Go"