android monkey常用命令

Monkey稳定性测试常用命令:

1.adb shell monkey n

2.adb shell monkey -p  com.android.calculator2 1000

3.adb shell monkey -p  com.android.calculator2 --throttle 1000 100

4.adb shell monkey -p  com.android.calculator2 --throttle 1000 -s 200 100

5.adb shell monkey -p  com.android.calculator2 --throttle 1000 100 >c: est.txt 每次都会覆盖原来的结果

6.adb shell monkey -v -p com.android.calculator2 --throttle 1000 --pct-touch 100 100

只需要点击事件,0代表点击事件,--pct-touch 100,表示的是点击事件的百分比,设置成100,代表100%

 

7.忽略奔溃和未响应:

adb shell monkey -p com.android.calculator2 --ignore-crashes --ignore-timeouts 1000

原文地址:https://www.cnblogs.com/bzdmz/p/10614683.html