Visual Studio's automated UI testing functionality makes it easy to test the UI capabilities of your application, and it helps you to complete coded UI tests.
Steps:
1. Create a new Coded UI test project.
Click on New project, File , select C # in Other languages , click Test, Select the Coded UI test project Click OK.
2. Recording UI test actions
After you create a new test project, you select the recording operation, and the coded UI Test builder appears:
To record after:
Click "Start Recording" and then work on the UI interface you want to test, UIMap will record your actions, click to play the video, then click on the Production code, name the test action you just made, and you can generate the test code. Click Start recording again to perform the next UI action test.
3. Finally, close the Test builder, and the auto-generated code appears in vs.
4.
To open Uimap.uitest, you can edit previously recorded actions:
5. Run the test
Click Run all tests, VS will automatically run the recorded UI test items.
UI tests coded with Visual Studio Ultimate 2013