android常见的monkey命令

adb shell monkey -p 包名 -v 9000000
adb shell ps | grep monkey //查找到monkey pid
adb shell kill [刚才查到的进程号]
指定一个包: adb shell monkey -p cn.emoney.acg 10
指定多个包:adb shell monkey -p cn.emoney.acg –p cn.emoney.wea -p cn.emoney.acg 100
不指定包:adb shell monkey 100
adb shell monkey -p cn.emoney.acg –v -v 100
adb shell monkey -p cn.emoney.acg –v -v –v 100
adb shell monkey -p cn.emoney.acg –s 10 100
adb shell monkey -p cn.emoney.acg –s 10 100
adb shell monkey -p cn.emoney.acg –throttle 5000 100
用于指定当应用程序崩溃时(Force& Close错误),Monkey是否停止运行。如果使用此参数,即使应用程序崩溃,Monkey依然会发送事件,直到事件计数完成
adb shellmonkey -p cn.emoney.acg --ignore-crashes 1000
adb shellmonkey -p cn.emoney.acg 1000
adb shellmonkey -p cn.emoney.acg --ignore-timeouts 1000
adb shellmonkey -p cn.emoney.acg --ignore-security-exception 1000
adb shellmonkey -p cn.emoney.acg --kill-process-after-error 1000
adb shell monkey -p cn.emoney.acg --pct-touch 10 1000
adb shell monkey -p cn.emoney.acg --pct-trackball 30 1000

猜你喜欢

转载自blog.csdn.net/weixin_37565521/article/details/115413429
今日推荐