Comments (13)
Did you try to run the test locally with the Bitrise CLI?
from steps-xcode-test.
No. Locally I just use Cmd+U
.
How can I do that ?
from steps-xcode-test.
from steps-xcode-test.
Yes it works locally. Today I had 2 builds that failed at the same time about the same issue. It happened in the same test. Then when I rebuild, both are ok. Earlier today it was the same test failing. The previous day I did not checked.
The only think particular in that test, is that I clear a text field that way :
It seems the test crash at this moment because of "Lost connection to test manager service"
Note : I can use alternative way to clear that field in case it come from this but that would be weird
Note : I'm doing more builds to confirm that it's coming from this
from steps-xcode-test.
Indeed might be code related - as I wrote in the other ticket you created:
... this might be an Xcode issue, which can be a combination of Xcode and your code (see: https://bitrise-io.github.io/devcenter/ios/known-xcode-issues/#possible-solutions ). This means that usually there's some kind of code workaround (adding sleep, etc. as you can see in the list I linked), or an Xcode version change can also help (but not always, there are known issues in Xcode present for quite a long time).
from steps-xcode-test.
I've got the same error (Connection to testmanagerd interrupted) but in another test. It happens when a text is typed (maybe not related to this) :
15:00:40.825 testmanagerd[7058:35011] Typing [email protected]
15:00:40.826 testmanagerd[7058:35002] Key event 'i' sent.
15:00:40.839 XCTRunner[9623:35794] Got AX notification 4002
15:00:40.836 testmanagerd[7058:27991] AX Notification 1005
15:00:40.836 testmanagerd[7058:27991] AX Notification 1001
15:00:40.837 testmanagerd[7058:27991] AX Notification 4002
15:00:40.839 testmanagerd[7058:27991] Got user testing notification with payload {
ModifiedInput = i;
ModifierFlags = 0;
UnmodifiedInput = i;
event = KeyEventComplete;
}
15:00:40.840 testmanagerd[7058:27991] Key event 'i' completed after 0.0144s.
15:00:40.848 testmanagerd[7058:35738] Key event 'o' sent.
15:00:40.891 XCTRunner[9623:35794] Got AX notification 4002
15:00:40.890 testmanagerd[7058:27991] AX Notification 1005
15:00:40.890 testmanagerd[7058:27991] AX Notification 1001
15:00:40.891 testmanagerd[7058:27991] AX Notification 1001
15:00:40.891 testmanagerd[7058:27991] AX Notification 4002
15:00:40.891 testmanagerd[7058:27991] Got user testing notification with payload {
ModifiedInput = o;
ModifierFlags = 0;
UnmodifiedInput = o;
event = KeyEventComplete;
}
15:00:40.891 testmanagerd[7058:27991] Key event 'o' completed after 0.0439s.
15:00:40.922 testmanagerd[7058:27991] AX Notification 1001
15:00:40.923 testmanagerd[7058:27991] AX Notification 1005
15:00:40.923 testmanagerd[7058:27991] AX Notification 1001
15:00:40.924 testmanagerd[7058:27991] AX Notification 4002
15:00:40.925 testmanagerd[7058:27991] Got user testing notification with payload {
ModifiedInput = s;
ModifierFlags = 0;
UnmodifiedInput = s;
event = KeyEventComplete;
}
15:00:40.925 testmanagerd[7058:27991] Key event 's' completed after 0.0297s.
15:00:40.926 testmanagerd[7058:35738] Key event 's' sent.
15:00:40.925 XCTRunner[9623:34860] Got AX notification 4002
15:00:40.942 XCTRunner[9623:34860] Connection to testmanagerd interrupted.
15:00:40.944 testmanagerd[7058:35011] Test process connection invalidated or interrupted, closing test session <XCTestSession: 0x7fb8c2603d10>.
15:00:40.945 testmanagerd[7058:35011] Closed <XCTestSession: 0x7fb8c2603d10>, removing from (
"<XCTestSession: 0x7fb8c2603d10>"
)
15:00:40.946 testmanagerd[7058:35011] Tearing down test session <XCTestSession: 0x7fb8c2603d10>.
15:00:40.946 testmanagerd[7058:35011] Considering exiting, 0 test sessions, 0 sessions with identifiers, 0 unidentified sessions...
15:00:40.946 testmanagerd[7058:35011] testmanagerd exiting, idle with no test activity.
15:00:40.941 testmanagerd[7058] <NSXPCConnection: 0x7fb8c2600cc0> connection from pid 9623: Warning: Exception caught during invocation of received message, dropping incoming message and invalidating the connection.
Exception: Unable to send string '-', only one gesture can be performed at a time.
15:00:40.947 assertiond[7053] assertion failed: 15G1004 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
15:00:40.949 testmanagerd[7058] testmanagerd exiting, idle with no test activity.
15:00:40.974 xcodebuild[6856:27570] Test operation failure: Lost connection to test manager service.
15:00:40.974 xcodebuild[6856:27570] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Lost connection to test manager service." UserInfo={NSLocalizedDescription=Lost connection to test manager service.} didCancel: 1
15:00:41.009 xcodebuild[6856:34718] 6740E3BD-D0C3-49B1-87D4-4FCF7F342356: Registered for sim device notification, got token 16
15:00:41.009 xcodebuild[6856:34718] 6740E3BD-D0C3-49B1-87D4-4FCF7F342356: Unregistering for sim device notification with token 16
15:00:41.010 xcodebuild[6856:34718] Sim iPhone 6s is booted (state = 3)
15:00:41.010 xcodebuild[6856:34718] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
15:00:41.012 xcodebuild[6856:34718] Returning /private/tmp/com.apple.launchd.7qzOeuM9HB/com.apple.testmanagerd.unix-domain.socket for TESTMANAGERD_SIM_SOCK
15:00:41.012 xcodebuild[6856:34718] Sim iPhone 6s has testmanagerd socket at /private/tmp/com.apple.launchd.7qzOeuM9HB/com.apple.testmanagerd.unix-domain.socket
15:00:41.013 xcodebuild[6856:34718] Connected to testmanagerd socket for Sim iPhone 6s
Another build, running in the same time does not have the problem.
from steps-xcode-test.
based on:
Exception: Unable to send string '-', only one gesture can be performed at a time.
I'd say it's most likely a timing issue - you should try to set the whole text in one step, or wait more between entering characters
from steps-xcode-test.
It was actually send at the same time. cf :
15:00:40.825 testmanagerd[7058:35011] Typing [email protected]
The earliest error message in the log is :
15:00:40.942 XCTRunner[9623:34860] Connection to testmanagerd interrupted.
I guess this is the root error while Unable to send string '-'
is a consequence of loosing the connection ?
From another build later today :
16:22:22.238 testmanagerd[7263:36628] Typing [email protected]
16:22:22.238 testmanagerd[7263:36085] Key event 'i' sent.
16:22:22.247 XCTRunner[9831:36079] Got AX notification 4002
16:22:22.246 testmanagerd[7263:29061] AX Notification 1005
16:22:22.246 testmanagerd[7263:29061] AX Notification 1001
16:22:22.246 testmanagerd[7263:29061] AX Notification 4002
16:22:22.249 testmanagerd[7263:29061] Got user testing notification with payload {
ModifiedInput = i;
ModifierFlags = 0;
UnmodifiedInput = i;
event = KeyEventComplete;
}
16:22:22.249 testmanagerd[7263:29061] Key event 'i' completed after 0.0110s.
16:22:22.252 testmanagerd[7263:36628] Sleep for 0.0027s
16:22:22.256 testmanagerd[7263:36085] Key event 'o' sent.
16:22:22.278 XCTRunner[9831:36079] Got AX notification 4002
16:22:22.277 testmanagerd[7263:29061] AX Notification 1005
16:22:22.277 testmanagerd[7263:29061] AX Notification 1001
16:22:22.277 testmanagerd[7263:29061] AX Notification 1001
16:22:22.277 testmanagerd[7263:29061] AX Notification 4002
16:22:22.283 testmanagerd[7263:29061] Got user testing notification with payload {
ModifiedInput = o;
ModifierFlags = 0;
UnmodifiedInput = o;
event = KeyEventComplete;
}
16:22:22.283 testmanagerd[7263:29061] Key event 'o' completed after 0.0274s.
16:22:22.295 testmanagerd[7263:29061] AX Notification 1001
16:22:22.297 testmanagerd[7263:36085] Key event 's' sent.
16:22:22.308 XCTRunner[9831:36079] Got AX notification 4002
16:22:22.304 testmanagerd[7263:29061] AX Notification 1005
16:22:22.304 testmanagerd[7263:29061] AX Notification 1001
16:22:22.305 testmanagerd[7263:29061] AX Notification 4002
16:22:22.309 testmanagerd[7263:29061] Got user testing notification with payload {
ModifiedInput = s;
ModifierFlags = 0;
UnmodifiedInput = s;
event = KeyEventComplete;
}
16:22:22.309 testmanagerd[7263:29061] Key event 's' completed after 0.0125s.
16:22:22.311 testmanagerd[7263:36628] Sleep for 0.0018s
16:22:22.328 testmanagerd[7263:29061] AX Notification 1001
16:22:22.330 testmanagerd[7263:29061] AX Notification 1005
16:22:22.331 testmanagerd[7263:29061] AX Notification 1001
16:22:22.331 testmanagerd[7263:29061] AX Notification 1001
16:22:22.332 testmanagerd[7263:29061] AX Notification 4002
16:22:22.333 testmanagerd[7263:29061] Got user testing notification with payload {
ModifiedInput = "-";
ModifierFlags = 0;
UnmodifiedInput = "-";
event = KeyEventComplete;
}
16:22:22.333 testmanagerd[7263:29061] Key event '-' completed after 0.0181s.
16:22:22.332 XCTRunner[9831:36079] Got AX notification 4002
16:22:22.335 testmanagerd[7263:36085] Key event '-' sent.
16:22:22.340 testmanagerd[7263:29061] AX Notification 1001
16:22:22.346 XCTRunner[9831:36079] Connection to testmanagerd interrupted.
16:22:22.347 testmanagerd[7263:36628] Test process connection invalidated or interrupted, closing test session <XCTestSession: 0x7fce19e013e0>.
16:22:22.347 testmanagerd[7263:37070] Closed <XCTestSession: 0x7fce19e013e0>, removing from (
"<XCTestSession: 0x7fce19e013e0>"
)
16:22:22.347 testmanagerd[7263:37070] Tearing down test session <XCTestSession: 0x7fce19e013e0>.
16:22:22.348 testmanagerd[7263:37070] Considering exiting, 0 test sessions, 0 sessions with identifiers, 0 unidentified sessions...
16:22:22.348 testmanagerd[7263:37070] testmanagerd exiting, idle with no test activity.
16:22:22.361 xcodebuild[7060:28642] Test operation failure: Lost connection to test manager service.
16:22:22.361 xcodebuild[7060:28642] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Lost connection to test manager service." UserInfo={NSLocalizedDescription=Lost connection to test manager service.} didCancel: 1
16:22:22.385 xcodebuild[7060:32264] 6740E3BD-D0C3-49B1-87D4-4FCF7F342356: Registered for sim device notification, got token 16
16:22:22.386 xcodebuild[7060:32264] 6740E3BD-D0C3-49B1-87D4-4FCF7F342356: Unregistering for sim device notification with token 16
16:22:22.386 xcodebuild[7060:32264] Sim iPhone 6s is booted (state = 3)
16:22:22.386 xcodebuild[7060:32264] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
16:22:22.387 xcodebuild[7060:32264] Returning /private/tmp/com.apple.launchd.ov5OboSoZo/com.apple.testmanagerd.unix-domain.socket for TESTMANAGERD_SIM_SOCK
16:22:22.398 xcodebuild[7060:32264] Sim iPhone 6s has testmanagerd socket at /private/tmp/com.apple.launchd.ov5OboSoZo/com.apple.testmanagerd.unix-domain.socket
16:22:22.398 xcodebuild[7060:32264] Connected to testmanagerd socket for Sim iPhone 6s
It seems it's failing at the same moment, when the hyphen is send as you said.
This particular step is really simple :
func iType(text: String, onTextFieldWithIdentifier identifier: String) {
let textField = app.textFields[identifier]
textField.tap()
textField.typeText(text)
}
Note : I use a stored property to store XCUIApplication()
. I've seen in the documentation (https://bitrise-io.github.io/devcenter/ios/known-xcode-issues/) that you suggest to always use XCUIApplication()
but it seems related to this error : Failed to perform AX action
from steps-xcode-test.
Trying the things on the https://bitrise-io.github.io/devcenter/ios/known-xcode-issues/#possible-solutions list is definitely something worth the time, and the errors can change between Xcode versions, so the fix you mentioned might still help.
from steps-xcode-test.
Also, if you can, you should try it with Xcode 8 too as every new Xcode version comes with bug fixes - but sometimes also introduce new ones..
from steps-xcode-test.
Do you still see this error to happen? If yes, please include the full step log.
(Closing it temporarily, will be reopened if you create a new comment with the log)
from steps-xcode-test.
Still getting this error on bitrise but not on simulator
"Lost connection to test manager service"
I am tapping a button in rating alert box in ios
t = 216.52s Find the "Not Now" Button
t = 218.19s Find the "Not Now" Button (retry 1)
t = 231.54s Find the "Not Now" Button
t = 234.48s Find the "Not Now" Button (retry 1)
t = 237.94s Find the "Not Now" Button (retry 2)
t = 244.09s Find the "Not Now" Button
t = 248.92s Find the "Not Now" Button (retry 1)
t = 254.36s Find the "Not Now" Button (retry 2)
t = 262.55s Find the "Not Now" Button
t = 269.38s Find the "Not Now" Button (retry 1)
t = 276.64s Find the "Not Now" Button (retry 2)
t = 287.12s Find the "Not Now" Button
t = 296.58s Find the "Not Now" Button (retry 1)
t = 306.49s Find the "Not Now" Button (retry 2)
t = 319.43s Find the "Not Now" Button
t = 331.10s Find the "Not Now" Button (retry 1)
t = 344.82s Find the "Not Now" Button (retry 2)
t = 360.69s Find the "Not Now" Button
t = 375.90s Find the "Not Now" Button (retry 1)
t = 391.89s Find the "Not Now" Button (retry 2)
t = 411.02s Find the "Not Now" Button
t = 428.58s Find the "Not Now" Button (retry 1)
t = 446.78s Find the "Not Now" Button (retry 2)
t = 468.96s Find the "Not Now" Button
t = 490.35s Find the "Not Now" Button (retry 1)
t = 514.60s Find the "Not Now" Button (retry 2)
t = 542.74s Find the "Not Now" Button
2020-03-26 12:20:10.405 xcodebuild[27957:1557055759] [MT] IDETestOperationsObserverDebug: 571.721 elapsed -- Testing started completed.
2020-03-26 12:20:10.405 xcodebuild[27957:1557055759] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-03-26 12:20:10.405 xcodebuild[27957:1557055759] [MT] IDETestOperationsObserverDebug: 571.721 sec, +571.721 sec -- end
2020-03-26 12:20:10.407 xcodebuild[27957:1557055759] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Lost connection to testmanagerd" UserInfo={NSLocalizedDescription=Lost connection to testmanagerd, NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /tmp/00008020-001138C03A51002E_xcuitest_derived_data_1/Logs/Test/Test-Transient Testing-2020.03.26_12-10-38-+0000.xcresult}
Testing failed:
from steps-xcode-test.
Hi @iosdeveloperIN! Can you please send us a build URL and enable support access in the settings so we can take a look? Thanks!
from steps-xcode-test.
Related Issues (20)
- Missing "watchOS Simulator" platform HOT 2
- Xcode 13 test repetition support HOT 1
- Error compiling framework HOT 10
- Code coverage is broken on recent Xcodes HOT 1
- Step fails after successfully retried tests in Xcode 13 HOT 6
- [Feature] Upgrade Issue Templates to use GitHub Issue Forms HOT 1
- Sometimes fails with an error: Failed to establish communication with the test runner HOT 3
- Bitrise reports test suite as passing, despite failures, when using `retry_on_failure` HOT 10
- Can't run SPM Targets without a project HOT 4
- No output for parallel testing HOT 2
- Use trainer to make test results more reliable HOT 6
- Tests do not run due to com.apple.dt.IDEWatchSupportCore HOT 2
- Github Status reported Failure even though tests passed HOT 11
- Xcode 14.1: Process config: simulator UDID lookup failed: runtime OS (16.0) on platform (iOS) is unavailable HOT 5
- Unable to run locally HOT 6
- Failed on 'Clone 1 of iPhone 8 Plus HOT 2
- Sometimes fails with – Error: Timed out trying to boot simulator after waiting 60.00s HOT 6
- BITRISE_XCRESULT_PATH environment variable is not set HOT 2
- Xcode 14.3 run in rosetta simulator. Arch in destination gets ignored. HOT 18
- This step is 10x slower than using xcodebuild - Performance Issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steps-xcode-test.