测试之家
  • Topics
  • QA
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • Sign Up
  • Sign In
新手
panzhigang (panzhigang)
第 331 位Users / 2014-01-08
4 篇帖子 • 43 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息.
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • IOS 使用 appium 提示 Instruments crashed on startup at November 13, 2014

    @xiaomayi0323 已经重启了,还是不行 请问下你说的用 UIAutomation 跑一下是怎么玩的

  • IOS 使用 appium 提示 Instruments crashed on startup at November 13, 2014

    @wozaihouma 我用的是模拟器,enable ui automation 已经打开,执行出现上面的问题

  • LocationService Alert 问题 at November 12, 2014

    @jason 请问这段代码加到哪个位子啊 ,能不能把 bootstrap.js 的内容贴出来

  • 出师不利,问题多多,求解 Original error: Instruments crashed on startup at November 12, 2014

    @wirelessqa 哥,你能说下你的解决方法吗

  • 脚本在 4.4 运行成功,但在 4.1 上运行提示 appPackage/appActivity never started at September 29, 2014

    @developer_luffy 还没有解决。。。

  • appium 中,如何实现对控件长按后拖拽的动作 at July 29, 2014
    public void slide(WebElement origin_el, WebElement destination_el)
    {
        // appium converts longPress-moveto-release to a slide action
        TouchAction touchAction = new TouchAction(this);
        touchAction.longPress(origin_el).moveTo(destination_el).release().perform();
    }
    

    我使用上面的方法根据元素移动成功,但是根据坐标移动没有成功,方法如下

    public void slide(int startX, int startY, int endX, int endY)
    {
        TouchAction touchAction = new TouchAction(this);
        touchAction.longPress(startX, startY).moveTo(endX, endY).release().perform();
    }
    

    appium 报错日志如下:

    info: --> POST /wd/hub/session/dfdfe492-8740-47c8-b799-c89e3fd652a2/touch/perfor
    m {"actions":[{"action":"longPress","options":{"y":1365,"x":876}},{"action":"mov
    eTo","options":{"y":609,"x":876}},{"action":"release","options":{}}]}
    debug: Appium request initiated at /wd/hub/session/dfdfe492-8740-47c8-b799-c89e3
    fd652a2/touch/perform
    debug: Request received with params: {"actions":[{"action":"longPress","options"
    :{"y":1365,"x":876}},{"action":"moveTo","options":{"y":609,"x":876}},{"action":"
    release","options":{}}]}
    debug: Pushing command to appium work queue: ["element:getLocation",{}]
    error: Unhandled error: TypeError: Cannot read property 'x' of undefined
        at null.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules
    \appium\lib\devices\android\android-controller.js:886:27)
        at next (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node
    _modules\async\lib\async.js:801:43)
        at C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modul
    es\async\lib\async.js:32:16
        at exports.respond (C:\Users\Administrator\AppData\Roaming\npm\node_modules\
    appium\lib\devices\common.js:28:9)
        at null.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules
    \appium\lib\devices\android\android.js:462:16)
        at null.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules
    \appium\lib\devices\android\uiautomator.js:93:9)
        at Socket.EventEmitter.emit (events.js:95:17)
        at Socket.<anonymous> (_stream_readable.js:746:14)
        at Socket.EventEmitter.emit (events.js:92:17)
        at emitReadable_ (_stream_readable.js:408:10) context: [POST /wd/hub/session
     {"desiredCapabilities":{"platformVersion":"4.3","app":"D:\\autotest\\jsmcc_T_WA
    P.apk","platformName":"Android","deviceName":"aidfm"}}]
    debug: [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"eleme
    nt:getLocation","params":{}}
    debug: [BOOTSTRAP] [debug] Got command of type ACTION
    debug: [BOOTSTRAP] [debug] Got command action: getLocation
    debug: [BOOTSTRAP] [debug] Returning result: {"status":7}
    

    有没有同学根据坐标拖动成功的,来帮忙瞧瞧啊

  • 脚本在 4.4 运行成功,但在 4.1 上运行提示 appPackage/appActivity never started at July 24, 2014

    @tianwei024 我试了下不指定 appPackage 和 appActivity,还是一样的错误,appium 版本是 1.2.0

  • 脚本在 4.4 运行成功,但在 4.1 上运行提示 appPackage/appActivity never started at July 24, 2014

    @kevinqinan WelcomeActivity 是一个欢迎页,要是换成别的话,页面不会成功加载,显示一半

  • 求助:使用 AppiumDriver 报错 java.lang.NoSuchMethodError: org.openqa.selenium.remote.ErrorHandler.<init>(Lorg/openqa/selenium/remote/ErrorCodes;Z)V at July 23, 2014

    把 selenium-java-2.41.0.jar 换成 2.42 版本的

  • 大家一起来写本叫 Appium 中文教程的书!已迁移到 testerhome 组织底下 at July 22, 2014

    支持,我先来试试,看看 github 项目操作

  • 脚本在 4.4 运行成功,但在 4.1 上运行提示 appPackage/appActivity never started at July 17, 2014

    @seveniruby 执行后显示,模拟器上是启动成功的

    C:\Users\Administrator>adb shell
    root@android:/ # am start -S -a android.intent.action.MAIN -c android.intent.cat
    egory.LAUNCHER -f 0x10200000 -n com.jsmcc/.ui.WelcomeActivity
    AUNCHER -f 0x10200000 -n com.jsmcc/.ui.WelcomeActivity                        <
    Stopping: com.jsmcc
    Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.L
    AUNCHER] flg=0x10200000 cmp=com.jsmcc/.ui.WelcomeActivity }
    
  • [安装包] Appium 国内下载地址 (百度云盘,已更新至 AppiumDesktop_1.7.1) at July 15, 2014

    楼主辛苦了

  • selenium 多窗口间无法切换 at July 14, 2014

    @lihuazhang 谢谢了 我来试下

  • selenium 多窗口间无法切换 at July 14, 2014

    @lihuazhang 请问下 如果不采用 webdriver 的话该怎样获取 window handler ?

  • 【已解决】使用 Appium(.net)连接 Android 虚拟机失败,提示 A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://127.0.0.1:4723/wd/hub/session at June 30, 2014

    找到你的 appium 安装目录,{appium_home}\lib\devices\android 下 adb.js

    var supportedBuildToolDirs = [ '17.0.0'
    , '18.0.1'
    , '19.0.0'
    , '19.0.1'
    , 'android-4.2.2'
    , 'android-4.3'
    , 'android-4.4' ];
    将 4.4 改成 4.4.2
    上次遇到这个问题用这个方法解决的,你试试

  • appium 简明教程 (11)——使用 resource id 定位 at June 30, 2014

    好东西,写的很亮

  • 新手贴:Windows 平台上的使用 Java 语言实现 appium 自动化程序 for Android (完整版) at April 08, 2014

    已经试验成功,楼主写的很棒

  • 新手贴:Windows 平台上的使用 Java 语言实现 appium 自动化程序 for Android (完整版) at April 02, 2014

    新手宝典

  • Prev
  • 1
  • 2
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

    ©testerhome.com 测试之家   渝ICP备2022001292号
      渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司