Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行完成后,test fail #39

Open
zhengyu88 opened this issue Sep 13, 2018 · 2 comments
Open

执行完成后,test fail #39

zhengyu88 opened this issue Sep 13, 2018 · 2 comments

Comments

@zhengyu88
Copy link

xcode是 9.4.1
ios是11.4.1

我设置跑60秒,感觉60秒正常跑完后,还是报test failed,是为什么呢?

这是一个log的结束部分:

17:34:32.829 testmanagerd[1269:596394] Test process connection invalidated or interrupted, closing test session <XCTestSession: 0x100912230>.
17:34:39.813 Xcode[1416:102770] Test process exited with exit code 0
17:34:39.814 Xcode[1416:102770] ############## DID EXECUTE #################
17:34:32.830 testmanagerd[1269:596396] Closed <XCTestSession: 0x100912230>, removing from (
"<XCTestSession: 0x100912230>"
)
17:34:32.830 testmanagerd[1269:596396] Tearing down <XCTestSession: 0x100912230>.
17:34:32.830 testmanagerd[1269:596396] XCTestSession is responsible for cleaning up its socket from an XCIDESession
17:34:32.830 testmanagerd[1269:596396] Shutting down lockdown socket
17:34:32.831 testmanagerd[1269:596396] Disconnected lockdown socket
17:34:32.831 testmanagerd[1269:596396] Tearing down <XCTDApplicationMonitor: 0x1009122e0>.
17:34:32.831 testmanagerd[1269:596396] Tearing down <XCTDProcessAssertionManager: 0x100b10be0>.
17:34:32.831 testmanagerd[1269:596396] Tearing down <XCTDApplicationLauncher: 0x100c0bc90>.
17:34:32.831 testmanagerd[1269:596396] Tearing down <XCTDSiriInterface: 0x100c0d190>.
17:34:32.832 testmanagerd[1269:596396] Invalidating <XCAXManager_iOS: 0x100c06730>
17:34:32.832 testmanagerd[1269:596396] Invalidated <XCTDAccessibilitySessionToken: 0x100c0c0c0>. Remaining XCTDAccessibilitySessionToken instances: {(
)}
17:34:32.832 testmanagerd[1269:596396] Unloading accessibility
17:34:32.832 testmanagerd[1269:596396] Turning off automation
17:34:32.838 testmanagerd[1269:596394] offset 0.302
17:34:32.839 testmanagerd[1269:596394] before/after <XCPointerEvent:0x10071e260 type:3 coordinate:(38,406) pressure:0.0000 offset:0.30s> (null)
17:34:32.839 testmanagerd[1269:596394] touch up {37.5, 406}
17:34:32.839 testmanagerd[1269:596394] normalized {37.5, 406} to {0.10000000000000001, 0.5}
17:34:32.839 testmanagerd[1269:596394] Waiting for touches complete.
17:34:32.839 testmanagerd[1269:596394] Gesture complete, replying to client.
17:34:32.857 testmanagerd[1269:579607] AX Notification 4002 (0x100c06730)
17:34:32.862 testmanagerd[1269:596396] Session summary: 0 test sessions, 0 sessions with identifiers, 0 unidentified sessions, has control sessions
17:34:32.862 testmanagerd[1269:596396] Control sessions: (
"<XCIDESession: 0x10080d980> (socket 5) created 2018\U5e749\U670818\U65e5 \U661f\U671f\U4e8c \U4e2d\U56fd\U6807\U51c6\U65f6\U95f4 \U4e0b\U53485:33:23"
)
17:34:32.870 testmanagerd[1269:579607] Calling handler for AX notification 4002:{
event = TouchEventsCompleted;
}
17:34:32.871 testmanagerd[1269:579607] Got user testing notification with payload {
event = TouchEventsCompleted;
}
17:34:40.075 Xcode[1416:102770] <IDETestOperationCoordinator: 0x7fced47558a0> finished receiving data from <IDEConsoleAdaptor: 0x7fced31bf5e0 'target' stdin: (null) 0 stdout: (null) 0 stderr: (null) 0>
17:34:40.075 Xcode[1416:102770] <IDETestOperationCoordinator: 0x7fced47558a0>: _considerFlushingDelegateBlockQueue - nothing to flush
17:34:42.006 Xcode[1416:102770] Test operation failure: Test session exited(0) without completing.
17:34:42.006 Xcode[1416:102770] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test session exited(0) without completing." UserInfo={NSLocalizedDescription=Test session exited(0) without completing.}`

另一个log里就显示test fail了:

2018-09-18 17:34:41.871184+0800 XCTestWDUITests-Runner[1347:597186] +[CATransaction synchronize] called within transaction
2018-09-18 17:34:41.967168+0800 XCTestWDUITests-Runner[1347:597186] Running tests...
2018-09-18 17:34:44.434253+0800 XCTestWDUITests-Runner[1347:597186] Continuing to run tests in the background with task ID 1

Restarting after unexpected exit or crash in XCTextWDRunner/testRunner(); summary will include totals from previous launches.

Test Suite 'Selected tests' started at 2018-09-18 17:34:45.130
17:34:45.130 XCTestWDUITests-Runner[1347:597186] -[XCTRunnerIDESession testSuiteWillStart:]
17:34:52.107 Xcode[1416:543922] <IDETestOperationCoordinator: 0x7fced4662fc0>: parseConsoleOutputFromOriginalOutput: called, 195 bytes written out to StandardOutputAndStandardError
17:34:52.107 Xcode[1416:102770] _XCT_testSuite:Selected tests didStartAt:2018-09-18 09:34:45 +0000
17:34:45.131 XCTestWDUITests-Runner[1347:597186] -[XCTRunnerIDESession testSuiteWillStart:]
17:34:52.108 Xcode[1416:102770] _XCT_testSuite:XCTestWDUITests.xctest didStartAt:2018-09-18 09:34:45 +0000
17:34:45.131 XCTestWDUITests-Runner[1347:597186] -[XCTRunnerIDESession testSuiteDidFinish:]
Test Suite 'XCTestWDUITests.xctest' started at 2018-09-18 17:34:45.130
Test Suite 'XCTestWDUITests.xctest' failed at 2018-09-18 17:34:45.131.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'Selected tests' failed at 2018-09-18 17:34:45.131.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.001) seconds

@zhouxihi
Copy link

我这边也出现跟你第二个log一样的test fail, 你解决了吗

@zidonJ
Copy link

zidonJ commented Apr 12, 2019

解决了么 我也出现了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants