高效的稳定性测试工具Fastbot的使用

稳定性测试工具调研

对比多款测试工具:monkey、Fastbot、AppCrawler、Maxim、Droidbot
Fastbot采用的是在测试过程中监听手机页面的 UI 信息,完成动作注入,即可实现持续的交互型测试。
相比较来说,Fastbot的执行效率高、操作有效性较高、页面覆盖率较高,符合日常稳定性测试需求。

Fastbot使用

github地址:https://github.com/bytedance/Fastbot_Android
官方介绍:https://blog.csdn.net/ByteDanceTech/article/details/108860609

使用简述
  1. 下载github项目到本地
  2. 将两个jar文件push到手机或模拟器的sdcard下 framework.jar monkeyq.jar
  3. 输入命令执行自动化测试
    adb shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar exec app_process /system/bin com.android.commands.monkey.Monkey -p 待测APP包名 --agent robot --running-minutes 测试时长(s) --throttle 事件间隔时长(ms) -v -v --output-directory /sdcard/fastbot-report/

你可能感兴趣的:(android,测试工具)