Monkey 命令与遇到问题记录

问题一 :进入adb环境后无法保存log文件。

解决方案:系统环境下直接执行adb shell monkey命令(adb shell monkey -p cn.com.greatchef --ignore-crashes --ignore-timeouts --ignore-native-crashes --pct-touch 30 -s 1 -v -v -v --throttle 200 100 3>/Users/liu/Desktop/3log.txt 2>/Users/liu/Desktop/error.txt 1>/Users/liu/Desktop/info.txt)

问题二:有时候命令正确但找不到所需执行的apk

解决方案:我这边是因为monkey -p cn.com.greatchef,估计是复制粘贴进入导致-p后空格没解析,手动输入后就行了,附带一个正确的图例

以下文章基础命令,以及参数详细解释;不再本文中继续写入;但执行命令的monkey终究是菜鸟,守护脚本、日志分析,嗯还有很长的路要走

关联文章1:https://blog.csdn.net/acycy/article/details/87222573
关联文章2:https://blog.csdn.net/hju22/article/details/88558900
关联文章3: https://blog.csdn.net/qq_30993595/article/details/80748559
关联文章4: https://blog.csdn.net/u011159607/article/details/77734402
!!~关联文章5: https://www.cnblogs.com/lauren1003/p/6193277.html(比较细致)

分析文章:https://www.gaoyaxuan.net/blog/128.html

posted @ 2021-04-01 18:43  天空空liu  阅读(260)  评论(0)    收藏  举报