I had to update to 3.0.4-dev2 due to #829 and #377, now when I run the App.Repl() on iOS and then I do a tree I get this:
Last login: Wed Oct 16 12:12:25 on ttys002
/Library/Frameworks/Mono.framework/Commands/mono "/var/folders/d_/wcl7dhts5s37x84lwjg6p_xc0000gn/T/uitest/repl/xut-repl.exe" ios "/Users/mahmoud/.nuget/packages/xamarin.uitest/3.0.4-dev2/lib/net45/Xamarin.UITest.dll" "http://127.0.0.1:37265/" "48761643-ECA7-4387-8730-E9E32464DDDF" True
~
➜ /Library/Frameworks/Mono.framework/Commands/mono "/var/folders/d_/wcl7dhts5s37x84lwjg6p_xc0000gn/T/uitest/repl/xut-repl.exe" ios "/Users/mahmoud/.nuget/packages/xamarin.uitest/3.0.4-dev2/lib/net45/Xamarin.UITest.dll" "http://127.0.0.1:37265/" "48761643-ECA7-4387-8730-E9E32464DDDF" True
Full log file: /var/folders/d_/wcl7dhts5s37x84lwjg6p_xc0000gn/T/uitest/log-2019-10-16_12-15-02-891.txt
iOS test running Xamarin.UITest version: 3.0.4
Skipping IDE integration as important properties are configured. To force IDE in>>> tree
Execution failed with exception: System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused
at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00110] in <bc09262900764a3e9e910b28993c4202>:0
--- End of inner exception stack trace ---e.
at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in <bc09262900764a3e9e910b28993c4202>:0
at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in <bc09262900764a3e9e910b28993c4202>:0
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in <bc09262900764a3e9e910b28993c4202>:0
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in <bc09262900764a3e9e910b28993c4202>:0
at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in <bc09262900764a3e9e910b28993c4202>:0
at Xamarin.UITest.Shared.Http.HttpClient.Request (System.String method, System.String endpoint, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable`1[T] timeOut) [0x000f6] in <6777b318e2f74eafa1931fe8103f1331>:0
at Xamarin.UITest.Shared.Http.HttpClient.Get (System.String endpoint, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable`1[T] timeOut) [0x00000] in <6777b318e2f74eafa1931fe8103f1331>:0
at Xamarin.UITest.iOS.HttpCalabashConnection.Dump () [0x00000] in <6777b318e2f74eafa1931fe8103f1331>:0
at Xamarin.UITest.iOS.iOSGestures.Dump () [0x00000] in <6777b318e2f74eafa1931fe8103f1331>:0
at Xamarin.UITest.Utils.TreePrintHelper.PrintTree (Xamarin.UITest.Utils.ITreePrinter treePrinter) [0x00006] in <6777b318e2f74eafa1931fe8103f1331>:0
at Xamarin.UITest.Queries.AppPrintHelper.Tree (System.Nullable`1[T] console) [0x0001c] in <6777b318e2f74eafa1931fe8103f1331>:0
at <InteractiveExpressionClass>.Host (System.Object& $retval) [0x00010] in <0de561b4918242b7b116458b36183e82>:0
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object& result, System.Boolean& result_set) [0x0003e] in <e5610ebfe8c34526a8158db3c89186d4>:0
at Xamarin.UITest.Repl.Evaluation.MonoCSharpReplEngine.Evaluate (System.String line) [0x00017] in <2cedfdaed2c2442ca48d74b64c31d2c8>:0
at Xamarin.UITest.Repl.Repl.ReplFacade.RunCode (System.String code) [0x00026] in <eb4013b436884a89b46adabfacf9b549>:0
at Xamarin.UITest.Repl.PromptHandler.PrintTree () [0x00000] in <eb4013b436884a89b46adabfacf9b549>:0
at Xamarin.UITest.Repl.PromptHandler.HandleInput (System.ConsoleKeyInfo key) [0x00072] in <eb4013b436884a89b46adabfacf9b549>:0
at Xamarin.UITest.Repl.Program.Main (System.String[] args) [0x00177] in <eb4013b436884a89b46adabfacf9b549>:0
Press any key to exit.
Here's the full log file mentioned:
16-10-2019 12:15:02.919 -03:00 - 2 - iOS test running Xamarin.UITest version: 3.0.4
16-10-2019 12:15:02.923 -03:00 - 6 - Skipping IDE integration as important properties are configured. To force IDE integration, add .PreferIdeSettings() to ConfigureApp.
16-10-2019 12:15:02.926 -03:00 - 8 - Skipping local screenshots. Can be enabled with EnableScreenshots() when configuring app.
16-10-2019 12:15:03.124 -03:00 - 207 - Artifact folder: /var/folders/d_/wcl7dhts5s37x84lwjg6p_xc0000gn/T/uitest/a-7E93C130BB6AAF4614363A9FD90AECB884E9ABFA
16-10-2019 12:15:03.176 -03:00 - 259 - Using cached artifact folder: idevice-tools
16-10-2019 12:15:03.177 -03:00 - 260 - Initializing iOS app on http://127.0.0.1:37265/.
16-10-2019 12:15:03.200 -03:00 - 283 - HTTP GET { Url: { AbsolutePath: "/version", AbsoluteUri: "http://127.0.0.1:37265/version", LocalPath: "/version", Authority: "127.0.0.1:37265", HostNameType: IPv4, IsDefaultPort: False, IsFile: False, IsLoopback: True, PathAndQuery: "/version", Segments: [ "/", "version" ], IsUnc: False, Host: "127.0.0.1", Port: 37265, Query: "", Fragment: "", Scheme: "http", OriginalString: "http://127.0.0.1:37265/version", DnsSafeHost: "127.0.0.1", IdnHost: "127.0.0.1", IsAbsoluteUri: True, UserEscaped: False, UserInfo: "" } }
16-10-2019 12:15:03.284 -03:00 - 367 - GET Complete { StatusCode: 200, Contents: "{"device_family":"iPhone","outcome":"SUCCESS","server_port":37265,"simulator":"CoreSimulator 587.35 - Device: iPhone SE (48761643-ECA7-4387-8730-E9E32464DDDF) - Runtime: iOS 12.4 (16G73) - DeviceType: iPhone SE","app_name":"myapp","app_version":"33","screen_dimensions":{"height":1136,"bounds":{"y":0,"x":0,"width":320,"height":568},"sample":1,"native_bounds":{"y":0,"x":0,"width":640,"height":1136},"width":640,"native_scale":2,"bounds_portrait_height":568,"bounds_portrait_width":320,"scale":2},"git":{"revision":"e8754b3","remote_origin":"https:\/\/github.com\/calabash\/calabash-ios-server.git","branch":"HEAD"},"device_name":"iPhone SE","4inch":true,"app_id":"br.com.akamud.myapp","form_factor":"iphone 4in","version":"0.21.8","server_identifier_to_skip":"","short_version_string":"0.8.4","server_identifier":"e8754b3cd4c478021b7b5f5654606d3a9bc25485","build_date":"2019-16-16 16:21:21 +0200","ios_version":"12.4","iphone_app_emulated_on_ipad":false,"model_identifier":"iPhone8,4","app_base_sdk":"iphonesimulator12.4"}" }
16-10-2019 12:15:03.935 -03:00 - 1018 - Artifact folder: /var/folders/d_/wcl7dhts5s37x84lwjg6p_xc0000gn/T/uitest/a-7E93C130BB6AAF4614363A9FD90AECB884E9ABFA
16-10-2019 12:15:03.936 -03:00 - 1019 - Test server version: 0.21.8
16-10-2019 12:15:05.667 -03:00 - 2750 - HTTP GET { Url: { AbsolutePath: "/dump", AbsoluteUri: "http://127.0.0.1:37265/dump", LocalPath: "/dump", Authority: "127.0.0.1:37265", HostNameType: IPv4, IsDefaultPort: False, IsFile: False, IsLoopback: True, PathAndQuery: "/dump", Segments: [ "/", "dump" ], IsUnc: False, Host: "127.0.0.1", Port: 37265, Query: "", Fragment: "", Scheme: "http", OriginalString: "http://127.0.0.1:37265/dump", DnsSafeHost: "127.0.0.1", IdnHost: "127.0.0.1", IsAbsoluteUri: True, UserEscaped: False, UserInfo: "" } }
OS: macOS 10.14.6
TestAgent version: 0.21.8
Xamarin UITest version: 3.0.4-dev2
XCode: 10.3 (10G8)
iOS: 12.4
Thanks @akamud for sharing your bug. @Oddj0b would you mind taking a look at this?
Hi, do you have anything to comment on this? This makes writing UI tests for iOS really cumbersome (the only workaround is downgrading to use the REPL and upgrading to fix the connection problems).
@akamud Is this still an issue with Xamarin.UITest 3.0.4-dev4?
Let me test and I'll get back to you.
@akamud there's a new version of Xamarin.UITest and TestCloud Agent out today - if you haven't already retested - please could you try these versions?
If you have - let us know how it went :)
Great to hear. We will work on this again possibly on the next sprint starting next week.
This issue has been automatically closed because there has been no response to our request for more information within 7 days. If you still need any assistance please reopen the issue or submit a new one.