ios – Xcodebuild测试 *** 作失败

ios – Xcodebuild测试 *** 作失败,第1张

概述我正在尝试使用新版本的appium和XCUITEST方法进行ipad测试.一旦我启动Appium服务器(1.6.0 Beta2)并执行我的测试(使用带有Cucumber的 Java),我从appium日志中得到了几个错误. [Xcode] 2016-10-06 12:18:25.074 xcodebuild[5380:983002] Error Domain=IDETestOperationsOb 我正在尝试使用新版本的appium和XCUITEST方法进行ipad测试.一旦我启动Appium服务器(1.6.0 Beta2)并执行我的测试(使用带有Cucumber的 Java),我从appium日志中得到了几个错误.

[Xcode] 2016-10-06 12:18:25.074 xcodebuild[5380:983002] Error
Domain=IDETestoperationsObserverErrorDomain Code=3 “Test operation was
canceled. If you belIEve this error represents a BUG,please attach
the log file at
/Users/gchaikin/library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/55FF83B2-8215-4D5A-BE53-A44661B07463/Session-WebDriverAgentRunner-2016-10-06_121824-SUJrDx.log”
UserInfo={NSLocalizedDescription=Test operation was canceled. If you
belIEve this error represents a BUG,please attach the log file at
/Users/gchaikin/library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/55FF83B2-8215-4D5A-BE53-A44661B07463/Session-WebDriverAgentRunner-2016-10-06_121824-SUJrDx.log}

上面的日志只包含相同的信息.

然后它说

[Xcode] 2016-10-06 12:18:25.077 xcodebuild[5380:983070] Connection
peer refused channel request for
“dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”;
channel canceled

[Xcode] Testing Failed: ./Scripts/generate_modules.sh: line 15:
Modules/module.modulemap: Permission denIEd
** TEST Failed ** The following build commands Failed: PhaseScriptExecution Generate\ modules
/Users/gchaikin/library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Intermediates/WebDriverAgent.build/DeBUG-iphonesimulator/WebDriverAgentlib.build/Script-AD35D0281CF1B37A00870A75.sh
(1 failure)

[XCUITest] xcodebuild exited with code ’65’ and signal ‘null’

WebDriverAgent日志说下一个

11:58:36.481 xcodebuild[4014:965497] Launching with
Xcode.IDEFoundation.Launcher.PosixSpawn 11:58:36.482
xcodebuild[4014:965497] Initializing test infrastructure. 11:58:36.483
xcodebuild[4014:965498] 2DCCFAF0-AC2A-41F2-ADCF-80A64E869EA7:
Registered for sim device notification,got token 4 11:58:36.483
xcodebuild[4014:965498] 2DCCFAF0-AC2A-41F2-ADCF-80A64E869EA7:
Unregistering for sim device notification with token 4 11:58:36.483
xcodebuild[4014:965498] Sim iPad Air 2 is booted (state = 3)
11:58:36.483 xcodebuild[4014:965498] Calling -[SimDevice
getenv:error:] for TESTMANAGERD_SIM_SOCK 11:58:36.484
xcodebuild[4014:965498] Returning
/private/tmp/com.apple.launchd.FQMBCMNtix/com.apple.testmanagerd.unix-domain.socket
for TESTMANAGERD_SIM_SOCK 11:58:36.484 xcodebuild[4014:965498] Sim
iPad Air 2 has testmanagerd socket at
/private/tmp/com.apple.launchd.FQMBCMNtix/com.apple.testmanagerd.unix-domain.socket
11:58:36.484 xcodebuild[4014:965498] Connected socket 33 to
testmanagerd for Sim iPad Air 2 11:58:36.484 xcodebuild[4014:965498]
Creating the test bundle connection. 11:58:36.485
xcodebuild[4014:965498] Listening for proxy connection request from
the test bundle (all platforms) 11:58:36.485 xcodebuild[4014:965498]
Resuming the connection. 11:58:36.486 xcodebuild[4014:965498] Test
connection requires daemon assistance. 11:58:36.487
xcodebuild[4014:965497] Received Ready from iOSSimulator 11:58:36.487
xcodebuild[4014:965497] Sending notification: NSConcreteNotification
0x7fda73f2d5a0 {name = com.apple.iphonesimulator.startSession;
userInfo = {
deviceUDID = “2DCCFAF0-AC2A-41F2-ADCF-80A64E869EA7”; }} 11:58:36.509 xcodebuild[4014:965497] Starting test session with ID
<__NSConcreteUUID 0x7fda743188b0> 2FBA9011-A9DC-40E3-85F3-3260DDE41977
11:58:36.509 xcodebuild[4014:965497] Checking test manager
availability…,will wait up to 120s 11:58:36.721
xcodebuild[4014:965497] Test operation failure: Test operation was
canceled. 11:58:36.721 xcodebuild[4014:965497] _finishWithError:Error
Domain=IDETestoperationsObserverErrorDomain Code=3 “Test operation was
canceled.” UserInfo={NSLocalizedDescription=Test operation was
canceled.} dIDCancel: 1

有人能帮忙吗?

解决方法 将appium服务器更新到1.6.0 beta 3之后,问题就解决了.现在我处于稳定的1.6.0版本,我面临着一个完全不同的问题.我正在测试的应用程序处于横向模式,我无法点击或点击任何元素.

有人听过这个问题吗?

总结

以上是内存溢出为你收集整理的ios – Xcodebuild测试 *** 作失败全部内容,希望文章能够帮你解决ios – Xcodebuild测试 *** 作失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1003440.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存