Software Test Learning Essay (5) Coded UI test

Source: Internet
Author: User

 

Automated testing refers to the automation of software testing, which is to run the system or application under preset conditions, evaluate the results of the operation, and pre-conditions should include normal conditions and abnormal conditions.

Automated testing is the process of translating a man-driven test behavior into a machine execution. Typically, after a test case has been designed and reviewed, the tester performs the test step-by-stage according to the procedures described in the test case to obtain a comparison between the actual result and the desired result. In this process, the concept of automated testing is introduced in order to save manpower, time or hardware resources and improve testing efficiency.

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.

(Note: Because your computer does not fit vs, so the image from other people's blog)

Software Test Learning Essay (5) Coded UI test

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.