Software Test Learning Note Week 5---UI testing with Visual Studio 2012

Source: Internet
Author: User

Coded UI tests

The Automated UI testing feature in Visual Studio 2012 makes it easy to test the UI capabilities of your application to help you complete coded UI tests.

A. New Coded UI test project

In Visual Studio 2012, click on New project, File --, select C # in Other languages , click Test, and select the Coded UI test project Click OK.

  

Ii. 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" to open the browser, this opens the http://channel9.msdn.com/Series/Visual-Studio-2012-Premium-and-Ultimate-Overview/ Testing-windows-store-applications, click Play Video, then click Production Code, named "Play";

Click on "Continue recording", click the Pause button, click the Generate code again, named "Pause";

Click "Continue recording", click the Settings button, click the Production code again, named "Setting";

Click "Continue recording", click the Full Screen button, click the Generate code again, named "Fullscreen";

Finally, close the Test builder, and the auto-generated code appears in VS

  

To open Uimap.uitest, you can edit previously recorded actions:

  

Third, run the test

Click Run all tests, VS will automatically run the recorded UI test items.

Software Test Learning Note Week 5---UI testing with Visual Studio 2012

Related Article

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.