UI Test: Android Problem

MiguelPietropaoloMiguelPietropaolo USMember
edited January 2018 in General

Hi! I needed to update Xamarin UI Test nuget to version 2.2.2 in order to get it to work in iOS. But with that version, Android's UI Test stopped working. In fact, the latest version that works for Android UI Tests is 1.3.8. Why is that?
Exception:

Message: SetUp : System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.WebException : The underlying connection was closed: The connection was closed unexpectedly.

The only workaround I've found is to create another project with another version for the nuget, just for Android and link the code. But that's awful :sweat:

Answers

  • wend0rlinwend0rlin DEMember ✭✭

    thanks to your hint I'm using package 1.3.8 now and I don't get the error anymore!

  • MentosanMentosan DEUniversity ✭✭

    Did you already report this bug to the Xamarin team?
    Using 2.2.2 our UITests are constantly green on iOS but fail randomly on Android (device or emulators, does not matter).

  • tuyenvtuyenv VNUniversity ✭✭✭

    Same issue here. I temporary turn off tests for Android :(. Focus on iOS first. I am thinking about using Appium, however, AppCenter doesn't support it for Xamarin yet.

Sign In or Register to comment.