Xcode 7 UI测试 - 断言失败:UI测试失败 - 超时等待启动目标应用程序

时间:2015-11-26 19:53:18

标签: xcode7 ui-testing xcode-ui-testing

我正在运行接近30个Xcode 7 UI测试脚本,我的测试失败了10 - 15个脚本,并出现此错误:

    Assertion Failure: UI Testing Failure - Timeout waiting to launch Target Application 0x1004c5400
<unknown>:0: error: -[Name_Tests test_FormName] : UI Testing Failure - Timeout waiting to launch Target Application 0x1004c5400
    t =    30.59s     Tear Down
Test Case '-[Name_Tests test_FormName]' failed (30.599 seconds).

然后,此失败后的所有脚本都会出现此错误消息:

Assertion Failure: UI Testing Failure - App state is still not terminated
<unknown>:0: error: -[Name_Tests test_VideoName] : UI Testing Failure - App state is still not terminated

单个脚本没有问题,因为它们可以自行运行。关于修复的任何想法?

编辑:我正在测试的设备是iOS 9.1上的iPad Mini,它在测试启动时崩溃

1 个答案:

答案 0 :(得分:1)

也许是XCode的bug。你的XCode版本是什么?你看过https://forums.developer.apple.com/thread/13234吗?