压力测试 Monkey 应用程序无响应ANR Application No Response

压力测试 第一次接触这个概念,客户端做压力测试,没听说过。其实是有的,典型:疯狂的点击屏幕。今天试验了一把,原理:用脚本疯狂去模拟点击事件,如何去模拟点击事件呢,就是好比一个人,随便去点,不一定非得就去点击有反应的控件。

看看打印的log:

m.android.settings/.WirelessSettings } in package com.android.settings

:Sending Pointer ACTION_DOWN x=209.0 y=147.0

:Sending Pointer ACTION_UP x=209.0 y=147.0

:Sending Pointer ACTION_MOVE x=-2.0 y=0.0

    // Rejecting start of Intent { act=android.intent.action.MAIN cat=[android.i

ntent.category.HOME] cmp=com.android.launcher/.Launcher } in package com.android //这种非本程序的包,是不去模拟的

.launcher

:Sending Pointer ACTION_DOWN x=219.0 y=29.0 //疯狂模拟各个位置的点击事件

:Sending Pointer ACTION_UP x=219.0 y=29.0

:Sending Pointer ACTION_DOWN x=319.0 y=18.0

:Sending Pointer ACTION_UP x=319.0 y=18.0

:Sending Pointer ACTION_DOWN x=179.0 y=91.0

:Sending Pointer ACTION_UP x=179.0 y=91.0

:Sending Pointer ACTION_DOWN x=212.0 y=176.0

:Sending Pointer ACTION_UP x=212.0 y=176.0

:Sending Pointer ACTION_DOWN x=196.0 y=193.0

:Sending Pointer ACTION_UP x=196.0 y=193.0

:Sending Pointer ACTION_MOVE x=-5.0 y=-2.0

// CRASH: com.acp.main (pid 325)

// Short Msg: Array index out of range: 0

// Long Msg: java.lang.ArrayIndexOutOfBoundsException: Array index out of range://程序出问题了,数组越界了,测试到这,测试就会自动停止了。

 0

// Build Label: android:generic/sdk/generic/:2.1-update1/ECLAIR/35983:eng/test-k

eys

// Build Changelist: 35983

// Build Time: 12731

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值