2016-10-06 5 views
4

ipad 테스트를 위해 XCUITEST 메소드와 함께 appium의 새 버전을 사용하려고합니다. 일단 Appium 서버 (1.6.0 Beta2)를 시작하고 내 테스트를 실행하면 (Java with Cucumber 사용) appium 로그에서 몇 가지 오류가 발생합니다.Xcodebuild 테스트 작동 실패

[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

사람이 도울 수 있다고 말한다?

+0

아직 해결 방법을 찾았습니까? – bsarrazin

답변

0

appium 서버를 1.6.0 beta 3으로 업데이트 한 후에도 문제가 해결되었습니다. 이제 안정적인 1.6.0 버전을 사용하고 있으며 완전히 다른 문제에 직면 해 있습니다. 테스트중인 앱은 가로 모드에 있으며 요소를 클릭하거나 탭하는 appium을 가질 수 없습니다.

누구에게이 문제가 발생 했습니까?

+0

안녕하세요 @ genatron, 답변으로이 답변의 첫 번째 문장을 표시하고 나머지 텍스트를 자르고 여기에 Stack Overflow에서 별도의 질문으로 게시해야합니다. 당신이 그런 식으로 도울 수있는 누군가를 찾을 가능성이 더 높습니다;) – Valdimar