maui-linux/Xamarin.Forms.Core.Windows....
Shane Neuville 0776812cbf Uwp restart uitests on crash (#5420)
* [UWP] if a UI tests crashes the UWP window this will restart the window so all the rest of the tests can run

* simplify
2019-03-05 10:07:57 -08:00
..
Properties Initial import 2016-03-22 16:13:41 -07:00
WinDriverApp.cs Uwp restart uitests on crash (#5420) 2019-03-05 10:07:57 -08:00
WinQuery.cs Add more UWP automated testing capabilities (#1252) 2017-11-10 10:52:25 +00:00
WindowsTestBase.cs Uwp restart uitests on crash (#5420) 2019-03-05 10:07:57 -08:00
WindowsTestServer.cs Uwp restart uitests on crash (#5420) 2019-03-05 10:07:57 -08:00
Xamarin.Forms.Core.Windows.UITests.csproj Add NUnitTestAdapter to xamarin ui test projects so VSIX isn't required for running UI Tests (#4719) 2018-12-13 23:41:05 +00:00
app.config [All] Move to netstandard2.0 **Breaking change** (#1306) 2017-11-29 17:37:06 +00:00
readme.md Add more UWP automated testing capabilities (#1252) 2017-11-10 10:52:25 +00:00

readme.md

Running the UI Tests on UWP

To run the tests you'll need to install the latest release of WinAppDriver.

Make sure you've built and deployed the UWP version of ControlGallery on the machine where you're running the tests. Run WinAppDriver.exe (if you installed it in the default location, it will be "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe").

With WinAppDriver running, start the tests with whatever test runner you normally use. The tests will take care of launching ControlGallery.

Now just sit back and watch the tests run. At the moment, WinAppDriver and our implementation of IApp for UWP have to take control of the mouse and keyboard to run these tests, so interacting with the test machine will probably interfere with the tests. (You may be able to work around this by running the tests in the Simulator; I've had mixed results and some blue screens when trying this, but good luck.)

Currently we can only run the tests against the desktop UWP application.