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
android常见的monkey命令
最新推荐文章于 2025-10-28 19:51:24 发布
本文详细介绍了ADB Monkey命令的使用方法,包括如何指定应用包名、设置事件数量、忽略错误行为等。通过示例展示了如何进行自动化UI测试,如控制事件比例、设置延迟以及在应用程序异常时的处理策略。
1655

被折叠的 条评论
为什么被折叠?



