关键字:

模拟器, 真机, 压力测试, 随机操作



zhangmatoMac-mini:platform-tools zhangyun$ ./adb shell monkey -help
usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...]
[-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...]
[--ignore-crashes] [--ignore-timeouts]
[--ignore-security-exceptions] [--monitor-native-crashes]
[--kill-process-after-error] [--hprof]
[--pct-touch PERCENT] [--pct-motion PERCENT]
[--pct-trackball PERCENT] [--pct-syskeys PERCENT]
[--pct-nav PERCENT] [--pct-majornav PERCENT]
[--pct-appswitch PERCENT] [--pct-flip PERCENT]
[--pct-anyevent PERCENT]
[--wait-dbg] [--dbg-no-events]
[--setup scriptfile] [-f scriptfile [-f scriptfile] ...]
[--port port]
[-s SEED] [-v [-v] ...] [--throttle MILLISEC]
COUNT


$ adb shell monkey -p your.package.name -v 500

停止条件:

  • If you have constrained the Monkey to run in one or more specific packages, it watches for attempts to navigate to any other packages, and blocks them.
  • If your application crashes or receives any sort of unhandled exception, the Monkey will stop and report the error.(异常崩溃)
  • If your application generates anapplication not respondingerror, the Monkey will stop and report the error.(ANR)
  • =====
  • 更多相关文章

    1. android 横竖屏切换 分辨率大小设置的模拟器
    2. 搭建 Android X86 系统,替代AVD模拟器,解决运行效率慢的问题(整理)==
    3. 针对Android 模拟器启动慢的问题
    4. Android Studio中模拟器中关于VT-x is disabled in BIOS错误的解
    5. 更改Android模拟器中的hosts文件
    6. Studio 1.5模拟器启动错误android/metrics/metrics_reporter_too
    7. 利用任务调度特性检测Android模拟器
    8. Android 4.1模拟器访问服务器接口

    随机推荐

    1. 人工智能的五个阶段
    2. KNN算法实战-改进约会网站配对效果
    3. Spring Security + OAuth2 精讲 多场景打
    4. IPFS指南:ipfs挖矿的常见问题,避坑指南
    5. 软件测试女孩可以不?
    6. kNN之改进约会网站配对效果(附源码)
    7. 2行代码实现小程序直接分享到微信朋友圈
    8. 前端工程师和后端工程师的区别?
    9. 在windows系统下安装linux虚拟机(VMware)
    10. 更改sqlplus命令提示符的样式