常用monkey命令&常见问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/q_Catherine/article/details/89156654

禁用状态栏(避免自动开启飞行模式或断网)
adb shell settings put global policy_control immersive.full=*
adb shell settings put global policy_control null

恢复:adb shell settings put global policy_control null

monkey命令:adb shell monkey -p com.aaa.bbb --throttle 200 --ignore-crashes --ignore-timeouts --ignore-security-exceptions -v -v 100000>d:\2.11.3_monkeylog.txt

终止monkey

ps | grep monkey
kill pid

遇到的问题:

1、小米手机调起了app后不再继续跑命令了。

解决方案:

小米手机有两个USB调试开关,需要开启USB调试(安全设置)开关,且开启时要求设备安装了SIM卡才能成功开启。

设置入口:设置—> 更多设置—> 开发者选项 —>USB调试(安全设置)

扫描二维码关注公众号,回复: 5904347 查看本文章

猜你喜欢

转载自blog.csdn.net/q_Catherine/article/details/89156654