【问题标题】:Getting 'org.openqa.selenium.WebDriverException' when executing iOS Appium TestNG Test Cases on AWS Device Farm在 AWS Device Farm 上执行 iOS Appium TestNG 测试用例时获取“org.openqa.selenium.WebDriverException”
【发布时间】:2019-02-10 10:14:55
【问题描述】:

我正在使用 Appium 版本 1.9.1 和基于 Appium Java TestNG 构建的框架,但是当我在真实设备上的 AWS Device Farm 上执行 i 时出现以下错误:

org.openqa.selenium.WebDriverException:处理命令时发生未知的服务器端错误。原始错误:未处理的端点:/session/BC6E4901-43A6-4C66-913A-EBAF8482DD4B/wda/screen -- http://127.0.0.1:8100/ 带参数 { 通配符 = ( “会话/BC6E4901-43A6-4C66-913A-EBAF8482DD4B/wda/屏幕” ); }

相同的测试用例在本地机器上运行良好。请针对上述问题提出解决方案。

【问题讨论】:

  • 能否请您添加您本地的 Appium 服务器日志和设备场日志?

标签: appium-ios aws-device-farm


【解决方案1】:

嗯,我想我知道这是为什么。我不知道 Device Farm 标准环境中的 WDA 版本。但是,在自定义环境中,它实际上引用了两个不同版本的 WDA。

测试规范 sn-p

  # The environment variables below will be auto-populated during run time.
  - echo "Start appium server"
  # The default WDA used is at DEVICEFARM_WDA_DERIVED_DATA_PATH_V1 (Supports versions iOS 12 and below), it is using commit f865d3. See (https://github.com/appium/appium-xcuitest-driver/tree/f865d32e78a5a8a15469bee30ed2f985d378575d)
  # If you need an older WDA version or need support for node modules, use the WDA at DEVICEFARM_WDA_DERIVED_DATA_PATH_V0. (This version does not suport iOS 12)

因此,如果您使用自定义环境,/screen 端点应该存在。

你能试一试并告诉我结果吗?

How to schedule a run

HTH

-詹姆斯

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-02
    • 1970-01-01
    • 1970-01-01
    • 2015-11-26
    • 1970-01-01
    • 2017-07-19
    相关资源
    最近更新 更多