1.安装APP

adb  install D:\APP地址apk

2.找到包名

adb  shell

pm list package 

3.启动测试

adb shell monkey -p 包名 200

--pct-touch 40 点击百分比

--pct-motion 60 动作时间

--throttle 30 每次间隔的时间

 

如 :adb shell monkey -p 包名 –throttle 1000 100    每次随机事件中间的间隔时间为1000毫秒,也就是1秒钟

adb  shell monkey -p 包名 --pct-touch 40 --pct-motion 60 30

 

posted on 2018-09-11 20:15  低调gl  阅读(82)  评论(0)    收藏  举报