【问题标题】:XCTest Assertion Failure: Failure requesting automation sessionXCTest 断言失败:请求自动化会话失败
【发布时间】:2019-02-12 12:58:13
【问题描述】:

我正在尝试在一个应用程序上使用以下命令运行 XCUI 测试用例

xcodebuild test-without-building -xctestrun $buildtestxctestrun_file -destination id=badded265a19dea8bxxxxxxxxxxxxx

Xcode 10.0 版
设备 iPad Air OS 12.0.1

我附上了错误日志的截图。

我可以使用相同的设备为不同的应用程序运行测试用例,它工作正常。
我在此特定应用程序上收到此错误。
请帮帮我。

【问题讨论】:

  • 我有时会看到,但仅在并行运行测试用例时才会看到。你最终找到解决方案了吗?

标签: session automation timeout xctest assertion


【解决方案1】:

我找到了错误的原因。 我用于自动化的 IPA 文件是 Distribution IPA 文件。所以它给了我错误。 我将 ipa 文件更改为开发人员 ipa 并且它正在工作。

【讨论】:

    猜你喜欢
    • 2019-04-11
    • 1970-01-01
    • 2011-05-27
    • 1970-01-01
    • 2021-01-08
    • 1970-01-01
    • 2021-06-27
    • 1970-01-01
    相关资源
    最近更新 更多