Android monkey 命令详解,kotlin脱糖

本文介绍了Android Monkey命令用于自动化测试的基本配置、约束条件、事件类型和调试选项。Monkey测试能模拟随机用户输入,如触摸、手势、导航等事件。通过调整不同事件的百分比和设置延迟时间,可以模拟不同的用户行为。使用`-p`选项限制测试应用,`-v`控制输出详细信息,`-s`设置随机数种子用于重复测试,`--throttle`控制事件间隔,`--pct-*`选项定义事件比例。
摘要由CSDN通过智能技术生成

| --pct-touch <percent> | Adjust percentage of touch events. (Touch events are a down-up event in a single place on the screen.) |

| --pct-motion <percent> | Adjust percentage of motion events. (Motion events consist of a down event somewhere on the screen, a series of pseudo-random movements, and an up event.) |

| --pct-trackball <percent> | Adjust percentage of trackball events. (Trackball events consist of one or more random movements, sometimes followed by a click.) |

| --pct-nav <percent> | Adjust percentage of “basic” navigation events. (Navigation events consist of up/down/left/right, as input from a directional input device.) |

| --pct-majornav <percent> | Adjust percentage of “major” navigation events. (These are navigation events that will typically cause actions within your UI, such as the center button in a 5-way pad, the back key, or the menu key.) |

| --pct-syskeys <percent> | Adjust percentage of “system” key events. (These are keys that are generally reserved for use by the system, such as Home, Back, Start Call, End Call, or Volume controls.) |

| --pct-appswitch <percent> | Adjust percentage of activity launches. At random intervals, the Monkey will issue a startActivity() call, as a way of maximizing coverage of all activities within your package. |

| --pct-anyevent <

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值