Forum Xamarin Test Cloud (Read Only)

Open Url on button tap in Xamarin Forms Test Cloud

BhaurajBiradar.9064BhaurajBiradar.9064 USMember ✭✭✭

Hi, How can i write testcase which will opens URL on button click in Xamarin Test Cloud.

Posts

  • Kent.GreenKent.Green USXamarin Team Xamurai

    Xamarin.UITest (and Calabash) are unable to automate multiple apps at the same time, and not system apps like the browser. So in order to test opening a URL it would either need to be contained in a WebView, still within your app; or you might be able to employ a backdoor to simulate the behavior without actually opening the URL itself.

    An advantage of the backdoor approach is that loading URLs can be very very slow in the Test Cloud due to the time required to communicate between the device and servers; but since a backdoor only simulates the behavior you might not need as much time.

    Without one of these two approaches, when you press the button the automation would lose it's connection with your app and fail.

    This guide talks about using UITest with WebViews: https://developer.xamarin.com/guides/testcloud/uitest/working-with/webviews/

    This guide talks about the use of backdoors:
    https://developer.xamarin.com/guides/testcloud/uitest/working-with/backdoors/

Sign In or Register to comment.