My visual studio project runs tests on iOS simulators & Android emulators.
When I test on an iOS simulator usually the first test runs OK. The second test, though, could fail with the following error:
OneTimeSetUp: System.Exception : Error while performing Query(null)
----> System.AggregateException : One or more errors occurred. (DeviceAgent springboard-dismiss-alerts failed: An error occurred while sending the request.)
----> Xamarin.UITest.XDB.Exceptions.DeviceAgentException : DeviceAgent springboard-dismiss-alerts failed: An error occurred while sending the request.
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.IO.IOException : Unable to write data to the transport connection: The socket has been shut down.
----> System.Net.Sockets.SocketException : The socket has been shut down
The 3rd test will probably run ok and so on... Eventually another test will fail with the above error. But if I try it again, it will probably work.
Has anyone any idea why this happens? And, more importantly, how I can make sure it does'nt happen again.
VS2019 for MAC: 8.4.2
Xamarin UI Test: 3.0.5