加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – Xcodebuild测试操作失败

发布时间:2020-12-14 17:19:20 所属栏目:百科 来源:网络整理
导读:我正在尝试使用新版本的appium和XCUITEST方法进行ipad测试.一旦我启动Appium服务器(1.6.0 Beta2)并执行我的测试(使用带有Cucumber的 Java),我从appium日志中得到了几个错误. [Xcode] 2016-10-06 12:18:25.074 xcodebuild[5380:983002] Error Domain=IDETestO
我正在尝试使用新版本的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版本,我面临着一个完全不同的问题.我正在测试的应用程序处于横向模式,我无法点击或点击任何元素.

有人听过这个问题吗?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读