zoukankan      html  css  js  c++  java
  • 移动端app性能测试——monkey

    一、压力测试

    monkey

    MonkeyScript

    MonkeyRunner

    adb shell monkey 1000

     adb logcat | gerp START获取包名和activity名

    adb shell monkey -p 包名 1000

    1、throttle参数

    adb shell monkey --throttle<milliseconds>

    2.seed参数

    指定随机生成数的seed值

    adb shell monkey --throttle  <milliseconds>  -s 100

    3、触摸事件

    设定触摸事件百分比

    adb shell monkey --pct-touch <percent>

    4、动作事件

    adb shell monkey --pct-motion <percent>

    5、轨迹球事件等略

    具体见http://www.imooc.com/video/13017

    6、忽略崩溃

    --ignore-crashes

    7、超时事件

    --ignore-timeouts

  • 相关阅读:
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
    EUI库
  • 原文地址:https://www.cnblogs.com/Macal/p/6785462.html
Copyright © 2011-2022 走看看