-
Notifications
You must be signed in to change notification settings - Fork 273
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
[v1.36.0] Got Error: Unable to establish a connection to the XCUITest server #1802
Comments
Hi, thanks for taking time to create this detailed issue, and sorry about the problem. Could you please share the flow and app binary? otherwise it's hard to debug. |
Sorry, I cannot share the app because it is my company's internal app. Additional info: I also ask my friend to try this case. He use the same simulator, but use different Xcode version (still using Xcode 13.3). Even after killing all unfinished process, the issue still replicable for him (with Xcode 13.3). |
I am also having this issue - I am running Xcode 16 beta 3, I see Maestro version: 1.36.0 |
I am not sure if this is helpful, but thought to mention that I have realized that this only happens to me when I try to run a test that involves inputting text. All other tests that just involve taps, scroll etc work fine. |
Have you already tried to kill all maestro process before run your test? @emmaarnott |
@yobelioekaharja Yeah, I have tried killing all maestro processes then running the test again but it does not help. |
This is also an issue on the latest 1.37.4 CLI |
THANK YOU, @emmaarnott! This was extremely helpful for me! Finally I can go to bed... Omfg, I spent two days on this, just to find that At least I am able to do very simple e2e tests through GitHub Actions now. Have you found a workaround to get |
@andreped Oh, I am so glad to hear that it helped you from going completely insane, I know that feeling all too well 😅 Tbh I didn't try to figure out a workaround as our tests aren't urgent right now, but I just tried to run my test that has |
@emmaarnott That is interesting! Did you upgrade Maestro in GitHub Actions to latest, or how did it resolve itself? :P I mean I can run my CI again to see if it is fixed, but we use a fixed version of Maestro in our CIs. |
@andreped Ah OK - nope, I just updated via terminal this morning by running |
Oh, I see. No, in my case I am seeing this on headless servers (github actions) when I am trying to run tests with maestro. All works fine for me locally, at least on my macbook with M2 chip - at least with the later versions. |
ah, shame :( |
Seeing exact same as @Lenovis, works fine locally but EAS throws up this error. Sometimes it seems to recover to a certain extent but then often double enters some of the text, causing the test to fail anyway 😢 : vs the expected text set as an env variable: |
Describe the bug
I tried to run my test in iOS using maestro. The flow is:
I got 2 problems here:
maestro test flow.yaml
(flow.yaml is my yaml file for the iOS flow), I experience slowness on iOS to start the test. It seems that maestro tried to reinstall its maestro-driver and sometimes not successfully. I used to kill my simulator, reopen the simulator, and run the test again. Then the maestro-driver can installed properly. Nevertheless, to start the first step of my test (opening the deeplink) still takes long timeRetrying connection to the XCUITest server for...
happened but didn't make my test failed at all. After I wait for a while, my test can successfully continue to run the next steps. But, this error log comes again and again. This makes my test takes very long time to run and not finished yet until I kill my terminal who run themaestro test
. Even after the test successfully continue after got theRetrying connection...
, but in the end my test still cannot run successfully until the end flow. Even though the error said thatUnable to establish a connection to the XCUITest server...
andbecause of XCUITest server got crashed/exit...
, but I am sure that my internet connection is still connected, the simulator not hang, and my app also still opened.To Reproduce
Steps to reproduce the behavior:
maestro test flow.yaml
Expected behavior
The expected behavior is maestro can successfully execute my command like
tapOn
,swipe
, etc. Besides that, my test should can finished successfully. Either it will passed or failed.Screenshots
Environment information (please complete the following information):
Additional context
For additional context:
I run my test case with a good internet connection. The apps also opened successfully. The simulator still running and not hang.
The text was updated successfully, but these errors were encountered: