UI test for Win8 app encoding

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.