Xcode 6.2 UI测试不会在模拟器

时间:2015-04-22 09:47:30

标签: xcode jenkins vnc

我有UI测试,他们不会从Jenkins运行,但是从当前的VM,当我通过VNC登录时,我可以启动并通过它们。我的节点通过jnlp连接到Jenkins,vnc会话正在运行。用户与jenkins和本地vm

相同
xcodebuild -scheme 'QVC - QA'  -sdk iphonesimulator -destination 'name=iPhone 6' test

12:38:28 Touch /Users/.../Library/Developer/Xcode/DerivedData/QVC-chdwbiakejemyxbyyafcpmiavikg/Build/Products/Acceptance-iphonesimulator/QVCTests.xctest
12:38:28     cd /Users/.../workspace/qvc-test/project/Sources
12:38:28     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/.../.rvm/bin:/Users/.../ci-tools_new/xcpretty/bin:/usr/local/apache-ant/bin"
12:38:28     /usr/bin/touch -c /Users/.../Library/Developer/Xcode/DerivedData/QVC-chdwbiakejemyxbyyafcpmiavikg/Build/Products/Acceptance-iphonesimulator/QVCTests.xctest
12:38:28 
12:40:28 2015-04-22 12:40:28.456 xcodebuild[53002:100b] [MT] IDEUnitTestsOperationsObserverDebug: Unable to get debug console for logging target process thread state.
12:40:28 
12:40:28 Testing failed:
12:40:28    Test target QVCTests encountered an error (Canceling tests due to timeout in Waiting for test process to check in... If you believe this error represents a bug, please attach the log file at /var/folders/xx/l0mp3szd0bx332cv3qrw1v3h0000gq/T/com.apple.dt.XCTest-status/Session-2015-04-22_12:37:12-u1STY7.log)
12:40:28 ** TEST FAILED **

在本地机器上我运行相同的命令,但测试成功

1 个答案:

答案 0 :(得分:0)

你用MacOS在Jenkins奴隶上运行吗?如果是,您应该将您的奴隶连接为JNLP,而不是ssh。 XCode不允许通过SSH远程执行,但是通过JNLP一切正常。