maxim monkey二次开发

https://testerhome.com/topics/11884

https://github.com/zhangzhao4444/Maxim

https://testerhome.com/topics/11719#reply57

 

 

adb push framework.jar /sdcard

adb push monkey.jar /sdcard

adb push  awl.strings  /sdcard

adb push  apps.strings  /sdcard

adb push max.xpath.actions /sdcard

adb push  max.widget.black  /sdcard

  

adb shell ps -ef | grep "monkey" 

 adb shell kill -9 26933

 

 

adb shell "CLASSPATH=/sdcard/monkey.jar:/sdcard/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p com.gaotu100.superclass --uiautomatormix --running-minutes 60 -v -v  >/sdcard/monkeyout.txt 2>/sdcard/monkeyerr.txt &"

  

adb shell CLASSPATH=/sdcard/monkey.jar:/sdcard/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p com.gaotu100.superclass --uiautomatormix --running-minutes 60 -v -v --throttle 300 --act-whitelist-file  /sdcard/awl.strings

 

跟原生monkey比优点如下:
防跳出及切回、防误点状态栏及下拉状态栏
防睡眠及睡眠唤醒、防假死及自拉活机制
随机自动输入
崩溃堆栈自动保存
可以增加特殊事件
支持黑控件 黑区域屏蔽
支持Activity黑白名单 ,可对跳转做更细粒度控制,比如控制仅在几个特定Activity中跑monkey。

 

可以设置 --act-whitelist-file --act-blacklist-file max.xpath.actions max.widget.black max.config max.xpath.selector

posted @ 2019-08-21 11:27  hayabky  阅读(771)  评论(0)    收藏  举报