还未发布过话题
  • 拿了最新版本跑了一下 出以下的问题

    在 iPad1 8.3 的真机上跑了一下, 目前的问题是 :设置了 500 秒的运行时间 经常跑了 1 分钟不到就结束了 被的 App 并没有发生什么 crash 的情况 大家有遇到过么?

  • #80 楼 @vigossjjj 跑 monkey 的时候 都是已经经过了一定的功能测试 再来做 monkey 的验证 因为这些 crash 并不是在手工测试的过程中发现的 也不是一定重新的 所以才采取这样的方式来操作 是有一定的道理和原因的

  • #76 楼 @softblank 这个想法主要是从安卓的 monkey 而来 因为安卓的 monkey 可以根据一个 seed number 来产生坐标序列 所以同一个坐标序列可以用来跑一样的随机步骤。 目前用 monkey 主要是给 app 做类似长时间操作的测试,如果发现问题然后开发根据问题来处理了相关的 crash。 那如何验证的确修好了, 在安卓上我们就用当时的 seed 再测试一遍。 所以才会在 IOS 上也想问是否有类似的可能性。

  • #72 楼 @softblank 之前是有发生过转屏 所以后面跑不下去了 但是后面换了一个设备之后 一开始跑就出错了 后来我把设备弄成竖屏的就可以跑了

    我会去关注 github 的上的 trouble shooting 的 非常感谢你们的分享

    对了如果有需求的话 提在哪里呢? 因为目前的执行步骤都是随机的 如果发现了 app 的 crash 然后无法通过重新执行来验证 是否有考虑过通过一个 id 记录一份坐标的脚本 然后后续就可以通过这个 id 来重新执行了

  • #65 楼 @vigossjjj

    我用的是默认的

    monkey.config.frame = {
    origin: { x: 0, y: UIATarget.localTarget().frontMostApp().rect().origin.y+10},
    size: { width: UIATarget.localTarget().frontMostApp().rect().size.width, height: UIATarget.localTarget().frontMostApp().rect().size.height-2}
    };// Ignore the UIAStatusBar area, avoid to drag out the notification page.

    我这次的报错是

    2015-05-14 02:28:01 +0000 Default: {"width":1024.0000335703464,"height":768.0000447604625}
    2015-05-14 02:28:01 +0000 Debug: target.flickFromTo({x:"286", y:"782"}, {x:"723", y:"482"})
    2015-05-14 02:28:01 +0000 Debug: start point is not within the bounds of the screen
    2015-05-14 02:28:09 +0000 Error: Script threw an uncaught JavaScript error: start point is not within the bounds of the screen on line 154 of UIAutoMonkey.js
    2015-05-14 02:28:09 +0000 Stopped: Script was stopped by the user

    那我应该怎么改呢 这个 target.flickFromTo 有设置的地方么?

  • @vigossjjj 运行起来了 出现过这样的问题 是我配置上需要改什么么

    2015-05-13 08:43:46 +0000 Debug: target.tapWithOptions({x:"629", y:"924"}, {touchCount:"1", duration:"0", tapCount:"1"})
    2015-05-13 08:43:46 +0000 Debug: tap point is not within the bounds of the screen
    2015-05-13 08:43:28 +0000 Error: Script threw an uncaught JavaScript error: tap point is not within the bounds of the screen on line 135 of UIAutoMonkey.js
    2015-05-13 08:43:28 +0000 Stopped: Script was stopped by the user

  • 太感谢了正好要这方面的资料呢