【问题标题】:Error: timeout of 1000ms exceeded on Appium iOS real device错误:Appium iOS 真机上超过 1000ms 的超时
【发布时间】:2021-01-29 17:37:23
【问题描述】:

在运行 iOS 真机时,我在 Appium 上收到“错误:超过 1000 毫秒的超时”错误。 我尝试了每一个“期望的能力”来增加超时但没有成功。

我想要的能力:

{
  "deviceName": "iphone6s",
  "platformName": "IOS",
  "udid": "adbc8013455614ce0933a50aervgt7424077bc79",
  "bundleId": "xxxxxxxxxxx",
  "automationName": "XCUITest",
  "wdaConnectionTimeout": 1000000,
  "newCommandTimeout": 15000,
  "wdaLaunchTimeout": 240000,
  "wdaStartupRetryInterval": 100000,
  "wdaLocalPort": 8102,
  "showXcodeLog": true,
  "usePrebuiltWDA": false
}

日志:

[iProxy@abb801b1:8102] Connection was refused to port 8102
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8102/status] with no body
[iProxy@abb801b1:8102] Connection was refused to port 8102
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8102/status] with no body
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8102/status] with no body
[WD Proxy] Error: timeout of 1000ms exceeded

attachment

【问题讨论】:

    标签: appium appium-ios


    【解决方案1】:

    Appium 日志在这里没有帮助,我建议检查 WebdriverAgent 诊断日志以更好地了解它可能卡住的原因:

    ~/Library/Developer/Xcode/DerivedData/WebDriverAgent-/Logs/Test

    你应该能够找到每个 Appium 会话的带有 .log 文件的文件夹。

    使用当前输入,您可以尝试xcuitest-driver 功能,例如appium:wdaEventloopIdleDelayappium:waitForQuiescence

    同时确保您使用的是最新的稳定版本的 Appium,在重试之前从您的设备中删除 WDA。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-11
      • 2017-06-21
      • 1970-01-01
      • 2017-07-03
      • 2021-12-31
      • 2016-04-28
      • 2017-02-04
      相关资源
      最近更新 更多