Android:Monkey Testing
示例
monkey -s 3843211230 -p com.egame --monitor-native-crashes --ignore-security-exceptions --kill-process-after-error --pct-trackball 0 --pct-nav 0 --pct-anyevent 10 --pct-appswitch 2 -v -v --throttle 500 600000
start logcat first
adb logcat 2>&1 | tee monkey.6.0.4.0604.main.log
start monkey
adb shell "monkey -s 3843211230 -p com.egame --monitor-native-crashes --ignore-security-exceptions --kill-process-after-error --pct-trackball 0 --pct-nav 0 --pct-anyevent 10 --pct-appswitch 2 -v -v --throttle 200 600000" 2>&1 | tee monkey.6.0.4.0604.txt
错误处理
小米手机执行 monkey 提示:“Injecting to another application requires INJECT_EVENTS permission”