UI tests coded with Visual Studio Ultimate 2013

Source: Internet
Author: User

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

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.