Easily test the user interface with coded UI tests
Automated user interface testing is the key to creating high quality products. These tests can help us easily identify UI regression tests. With coded UI tests in Visual Studio, you can generate very powerful user interface tests.
The basic steps are as follows: 1. Create a Coded UI test project in Visual Studio 2013:
In Visual Studio 2013, click on the test on the left side of the installed-and- new project , ->visual C # , and click on the right. After the coded UI test Project , click OK.
2. Record the UI test action:
After the test project is created successfully, in the pop-up box, select the recording action, edit the UI map, or add the assertion in the Code generation Code for the coded UI test , and click OK.
Pop-up dialog box uimap-coded UI Test Builder
Click Start Recording , then open the Web page or app you want to test, take one step, and then click Generate code to name the generated code method.
Click continue recording , proceed to the next step, then click Generate code , name the generated code method.
......
Finally, you close the Test builder, and the automatically generated code appears in Visual Studio.
3. Run the test
Click Run All tests and Visul Studio will automatically run the recorded UI test items.
Application testing methods for Win8 App Store see http://channel9.msdn.com/Series/Visual-Studio-2012-Premium-and-Ultimate-Overview/ Testing-windows-store-applications
UI test for Win8 app encoding