I am trying to use Xamarin.UITest locally, but I am getting a httprequest exception, saying that the connection has been refused I am using xcode 9.3, vs 7.4.2 and an iphone 10.3 iphone x sim Xamarin.Ui.Test 2.2.4, Xamarin.Testcloud.Agent 0.21.4, NUnit 3.10.1 When Trying to run my test I get the following Exception:
Xamarin.UITest.XDB.Exceptions.DeviceAgentException : DeviceAgent start session failed: An error occurred while sending the request ----> System.Net.Http.HttpRequestException : An error occurred while sending the request ----> System.Net.WebException : Error: ConnectFailure (Connection refused) ----> System.Net.Sockets.SocketException : Connection refused
I got it working by restarting the mac and putting the Calabash.Start() call right on top of the FinishedLaunching method. If one or both saved the day, I don't know.