UWPControls is a collection of test scenarios that covers basic interactions with Universal Windows Platform controls (UI elements). Use this as a reference on how to interact with certain UWP controls you have in your application.
The test scenarios are written against AppUIBasics application that contains all UWP basic controls. This application needs to be installed once in the machine you are running your test. Follow the instruction on the application README.
- Windows 10 PC with the latest Windows 10 version (Version 1607 or later)
- Microsoft Visual Studio 2015 or later
- AppUIBasics application
- Open
UWPControls.sln
in Visual Studio - Select Test > Windows > Test Explorer
- Select Run All on the test pane or through menu Test > Run > All Tests
Note: The target application AppUIBasics will need to have been built and deployed using the instructions here prior to running the tests.
Once the project is successfully built, you can use the TestExplorer to pick and choose the test scenario(s) to run
- Button
- CheckBox
- ComboBox
- DatePicker
- ProgressBar
- RadioButton
- Slider
- TextBlock
- TextBox
- ToggleButton
- ToggleSwitch
Please follow the guidelines below to maintain test reliability and reduce test execution time:
- Provide a complete set of interactions (if applicable) for each new control
- Aim for simple and reliable scenario using the least amount of test steps
- Reuse existing application session when possible to reduce unnecessary application re-launching