关键字:

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



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. Ubuntu10.04 32位编译Android(安卓)4.0源码
    2. android 应用异常可以引起android系统崩溃重启
    3. android studio教程-创建第一个项目Hello World
    4. 更改Android模拟器中的hosts文件
    5. 搭建 Android(安卓)X86 系统,替代AVD模拟器,解决运行效率慢的问题(
    6. Android网络抓包
    7. 针对Android(安卓)模拟器启动慢的问题
    8. Android(安卓)C编程技巧
    9. Android(安卓)Studio中模拟器中关于VT-x is disabled in BIOS错

    随机推荐

    1. 自定义View之继承View(圆形进度图,播放器条
    2. android 绘图 反锯齿办法
    3. android 自定义视图控件开发
    4. android客户端—AsyncTask的使用
    5. 极光推送的 4 种消息形式
    6. Android培训班(全世界最便宜,还送6410开发
    7. Android实践--apk反编译
    8. Android开发之--上传图片到七牛云存储
    9. Android人脸检测类FaceDetector
    10. Android新提供的测试框架支持库学习 && T