我正在运行近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,它在测试启动时崩溃
可能是XCode错误。您的XCode版本是什么?你看到了吗https://forums.developer.apple.com/thread/13234?