xamarinxamarin-test-cloudxamarin.uitest

How do I send a HTTP requests from a device to a server which runs in the testrunner of Xamarin Test Cloud


I am using Xamarin.UITest for automated tests of an Android and iOS application. This app makes some HTTP requests to a webserver.
For testing purposes and to easily respond with the needed data for the test case, I start a temporary HTTP server (I am using HttpListener) in the test and adjust the application, so it makes the requests to this temporary server.

When I run the tests local on my devices and simulators, everything works.
When I run the tests in the Xamarin Test Cloud, I can not get a connection to the HTTP Server. Url in that case would be http://executionhost11.prod:/...

Is this use case possible in the Xamarin Test Cloud?
Do I have to use some specific ports (I tried 8081 and 7103)?


Solution

  • I was informed by the Xamarin Support, that my usecase is not supported by Xamarin Test Cloud.

    Between the devices and the executor are firewalls in place, which prevent the connection from the device to the test executor.

    Recommended models are: