android 自动化测试 monkey

关键字:

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



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 an application not responding error, the Monkey will stop and report the error.(ANR) =====
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

android 自动化测试 monkey

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭