TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Editing: Microsoft Visual Studio 2010 – Coded UI Test – Overview
Wiki
>
TechNet Articles
>
Microsoft Visual Studio 2010 – Coded UI Test – Overview
Article
History
Title
<html> <body> <p style="text-align:justify">[toc]<br> <br> Coded UI tests are innovative capability of Visual Studio 2010. Coded UI tests offer a way to create entirely automated tests which work at user interface level to certify the functionality and behavior of an application. Coded UI Test Framework features of Visual Studio 2010 permit testers to quickly and effortlessly create coded UI tests by recording the actions performed or straight from existing action recordings. Action recordings contain the steps taken during manual testing of an application.<br> <br> Visual Studio 2010 Ultimate or Visual Studio 2010 Premium can be used to craft Coded UI tests. These tests provide functional testing of the user periphery and validation of user interface controls. Automated UI tests enable testing exactness of the user interface functioning after code changes. Coded UI tests are more rapid to run than manual tests. The coded UI test performs actions on the user interface controls for an application and verifies that the correct controls are displayed with the correct values. <br> <br> When a coded UI test is created, internally a UIMap object is generated that is definite to the test and represents the windows, controls, parameters, and assertions that are in the UI or that are created through the recording. Once the UIMap object is on hand, then actions can be performed on these UI stuff to automate the user interface. A coded UI test class is recognized by a CodedUITestAttribute applied to the class. Each coded UI test is a test method in a coded UI test class. Multiple test methods can be added to a coded UI test class.<br> <br> The test method can also add confirmation code for a UI test control to get the value of any of its available property. Test methods use an Assert statement to compare the actual value and expected values. The result of this evaluation determines the outcome of the test. Every time that a coded UI test is run, test results can be analyzed and if the test fails, details of which assertion failed can be seen or stored.<br> <br> Coded UI Test is a test type which inherits from Unit Test. It can be used anywhere a unit test is used (of course with a small number of catches). Its code is generated in either C# or VB .NET languages. Coded UI Test Framework provides loaded APIs for Web, Win Forms and WPF controls for UI testing. The framework features intent aware recording and resilient playback features also used for fast forwarding at some stage in manual testing and to create actionable bug. It supports both local as well as remote runs. Coded UI has very rich extensibility features to customize recording as well as to provide support for custom controls. <br> <br> When a Coded UI Test is executed, Playback engine performs all the interactions of the tests. Playback engine has smart match algorithm for searching the controls which applies heuristics. Playback engine supports UI Synchronization (not for all though) which ensures that the control that was supposed to have expected an action has actually received it, and redo in case of failure. Coded UI Test Framework provides many rich features such as smart algorithms to wait for a control to be ready, ensure visibility or existence of a control.<br> <br> </p> <p> </p> <p> </p> <h2><a name="See_Also"></a>See Also :-</h2> <ul> <li><a href="http://social.technet.microsoft.com/wiki/contents/articles/6696.microsoft-visual-studio-2010-web-performance-test-overview.aspx"><span style="color:rgb(54,96,146)">Microsoft Visual Studio 2010 – Web Performance Test – Overview</span></a> </li><li><a href="http://social.technet.microsoft.com/wiki/contents/articles/6750.microsoft-visual-studio-2010-load-test-overview.aspx"><span style="color:rgb(54,96,146)">Microsoft Visual Studio 2010 – Load Test – Overview</span></a> </li><li><a href="http://social.technet.microsoft.com/wiki/contents/articles/8476.how-to-schedule-automated-tests-without-using-tfs.aspx"><span style="color:rgb(54,96,146)">How to Schedule Automated Tests without using TFS</span></a> </li></ul> <p> </p> </body> </html>
Comment
Tags
Please add 6 and 7 and type the answer here: