美文网首页
monkey测试方法

monkey测试方法

作者: Cc失語的小魚 | 来源:发表于2019-02-11 10:28 被阅读0次

    测试前提:

    1) 手机初始化;

    2) 连接wifi;

    3) 进入设置-亮度和字体,关闭自动调节开关,自动锁屏选择不休眠;

    4) (版本已默认打开,不用再打开)进入设置-辅助功能-开发人员工具,开启USB调试;

    5) 开启log:

    a)  移动端拨号盘输入:*#*#3646633#*#*,进入mtklog项,家庭端在wifi框内输入*#1006#,进入原生设置,进入关于平板电脑,点按5次版本号进入开发者模式,再点3次内核版本进入mtklog项;

    b)点击右上角按钮进入页面,只开启MobileLog,关闭剩余项;

    c)点击MobileLog进入MobileLog 页面,将Limit current Log Size和Limit Total Log Size分别 设置为4096MB、8192MB;

    d)开启mtklog;

    7)blacklist.txt仅为参考,可以创建whitelist.txt进行替代。

    自动化测试:

    测试要求:测试机10台(根据项目要求设置执行的时间)

    1).黑名单blacklist.txt拷入手机

    adb push 黑名单路径 /data/local/tmp/

    2)进入cmd,打开adb 执行adb shell

    3)设置免关机 setprop ro.monkey true

    4)执行命令(全模块):monkey --pkg-blacklist-file  /data/local/tmp/blacklist.txt  --throttle 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes  -v -v -v 360000 >> /mnt/sdcard/monkey.txt

    执行命令(单个):monkey --p -单个包名 --throttle 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -v -v -v 360000>> /mnt/sdcard/monkey.txt

    执行命令(验证问题):monkey --pkg-blacklist-file /data/local/tmp/blacklist.txt --throttle 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -s 上次出现问题的seed值 -v -v -v 360000 >> /mnt/sdcard/monkey.txt

    5)标配充电器充电

    相关文章

      网友评论

          本文标题:monkey测试方法

          本文链接:https://www.haomeiwen.com/subject/xqcjkqtx.html