Monkey记录

1.查找包名方法

方法一:

sdk里面的appt

以ES文件浏览器为例,命令行中切换到aapt.exe目录执行:aapt dump badging E:\apk\es3.apk

方法二:

查看data/data文件夹下的应用程序包。注:我们能测试的应用程序包都在这个目录下面

C:\Documents and Settings\Administrator>adb shell

ls data/data

 

2.查看手机连接状态

adb devices

2-1 指定机器执行

在多个device的时候,执行adb命令一般都需要用参数-s指定device。

例如卸载emulator-5554(机器名)上的包com.soft.camera,命令如下
adb -s emulator-5554 uninstall com.soft.camera

例如通过monkey测试
adb -s emulator-5554 shell monkey -v -p your.www.com 500

指定机型

adb connect emulator-5554

 

2、指定device来执行adb shell

命令:adb -s devicename shell

 

常用操作命令:

(注意命令位置,放错了预期也是效果达不到的)

结果输出txt

adb shell monkey -v -p com.ibroker.iBerHK 100 >D:/calendar_1.txt 

操作时间间隔时间:

adb shell monkey --throttle 500  -v -p  com.ibroker.iBerHK  1000 >/Users/kaibinliu/Desktop/monkey_log.txt

 

重复seed用户事件:

adb shell monkey  --pct-touch 80 -v -p  com.ibroker.iBerHK  -s 1529518718852  500  >/Users/kaibinliu/Desktop/monkey_log2.txt

 

如果写了个没有的seed值 那么就是指定seed值的功效

https://blog.csdn.net/lebang08/article/details/70858532

posted @ 2018-03-30 16:05  凯宾斯基  阅读(310)  评论(3编辑  收藏  举报