Git Product home page Git Product logo

uitestsampleapp's Introduction

CI Tool Build Status
GitHub Actions Xamarin Azure Functions

Sample App Demonstrating UITests

This app shows how to implement UITests into a Xamarin.Forms project.

The UITests follow the recommended practice of Page Object Architecture. In the Xamarin.Forms views, we've added an AutomationId to each control to show how UITest interact with controls cross-platform, using their AutomationId.

It demonstrates how to utilize Backdoors in UITest to bypass a login screen, improving the speed of the tests.

It also demonstrates how to utilize App Links in UITesting to navigate quickly to the page under test. App Links is initialized and executed in the source code for the app in App.cs. The UITest SelectItemOnListView uses a backdoor method to execute the App Links and navigate directly to the ListPage.

The login page leverages the Reusable Login Page created by Michael Watson.

uitestsampleapp's People

Contributors

azureadvocatebit avatar brminnick avatar depechie avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

uitestsampleapp's Issues

Xamarin.UITest on iOS : Second and subsequent Tests failes as all the app.<Methods> throws exceptions

Testing a Xamarin.Forms app using Xamarin.UITest framework, so far all the test cases are running fine on Android Emulators, But in iOS (Simulators) most of the test cases fails except the first Test.That too sometimes fails, could not predict that correctly.

For each test, app is launched successfully and login screen is visible, but Test throws exception that cannot perform any operation on UI elements.

I used the REPL, tree command shows the correct tree, but if I try any of the app. Methods such as Tab, EnterText, ClearText, flash...etc throws exception.

Error while performing EnterText(Id("Usern2meAutoId"), "[email protected]") Exception: System.Exception: Un2ble to enter text. Query for Id("Usern2meAutoId") g2ve no results.

2t X2m2rin.UITest.iOS.iOSApp+<>c__Displ2yCl2ss21_0.b__0 () [0x0004c] in <2216c16730254859bd272c6bc1c728f7>:0 2t X2m2rin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] 2rgs, System.String memberN2me) [0x00006] in <2216c16730254859bd272c6bc1c728f7>:0

Exception: Error while performing EnterText(Id("Usern2meAutoId"), "[email protected]")

System.Exception : Error while performing W2itForElement(M2rked("FullN2meAutoId"), "Did not see the l2nding p2ge.", 00L00L15, null, null) ----> System.TimeoutException : Did not see the l2nding p2ge-

An `.apk` is generated for MyLoginUI

@brminnick any idea how to reconfigure the solution so it doesn't build MyLoginUI as an .apk?

In the Mobile Center Integration environment it no longer allows you to download both .apk's and it's picking the MyLoginUI one instead of the UITestSampleApp one

image

I am receiving numerous Socket Exceptions

and don't know why. I presume it is from the socket connection between the Xamarin.UITest.dll an the device. Could you explain?
e.g.
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in Xamarin.UITest.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in Xamarin.UITest.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.AggregateException' in Xamarin.UITest.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in Xamarin.UITest.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.AggregateException' in Xamarin.UITest.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in Xamarin.UITest.dll

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.