本文主要包括以下内容
1、Monkey工具
2、adb命令实现手机上的monkey工具的控制与使用,同是可以使用adb在手机上完成安装与卸载。
3、monkey Script可以帮助完成重复的安装过程,例如搜索100次,monkey完成的是随即操作时无法完成重复性操作。
4、monkeyRunner提供了三大aba。
压力测试步骤
1.在手机开发者选项中,将USB调试连上
2.确认连接 adb devices
3.安装测试APP adb install package.apk
4.发送压力测试指令 adb shell monkey 1000(具体事件数)
5.获取APP包名 adb logcat|grep START
6.adb shell monkey-p package(包名) 1000(具体事件数)
monkey高级参数
adb shell monkey –throttle Monkey Runner 与monkeyscript差别是 runner 在测试过程中可以实现截屏操作