ExecuteAutomation

An Introduction to Coded UI Test(CUIT)

Automated tests that drive your application through its user interface (UI) are known as coded UI tests (CUITs). These tests include functional testing of the UI controls. They let you verify that the whole application, including its user interface, is functioning correctly. Coded UI Tests are particularly useful where there is validation or other logic in the user interface, for example in a web page. They are also frequently used to automate an existing manual test.

Coded UI Supported Technologies

Using Coded UI, one can easily test applications which has UI (User Interface). The application can be of either Web based or Windows based, coded UI supports them. Following UI technologies Coded UI supports

Comparing Coded UI with other tools

It’s very obvious here that, I have just compared some of the most commonly used popular tools against Visual Studio Coded UI testing.

Coded UI Application Testing feature

Coded UI has two different ways feature to test your applications
  1. Coded UI Record and Playback
  2. Coded UI Hand coding (which will involve intense coding)
The way Coded UI automation is designed by Microsoft is to target both the non-programmers as well as programmers to work with Coded UI. Microsoft Test Manager (MTM) uses Coded UI Record and Playback feature to record all the user action and save it as a test case, which can then be used to replay while executing the test case. Coded UI Hand coding is used prevalently while designing custom frameworks while working with larger projects.

Coded UI for Windows Mobile

The coded UI for Windows mobile is available from Visual Studio 2013 Update 2 and later, which mean all the Visual studio 2013 user, need to go for Update 2 or later (latest is Update 4) for getting the Coded UI for Windows Mobile.
Note But the only limitation is, currently only mobile application developed with XAML us supported by Coded UI, other technologies like WinJS, Silverlight or HTML5 are not supported.
 

Coded UI for Windows Stores

The Coded UI for Windows Store application currently supported in Windows 8 and 8.1, also, it support only XAML applications not WinJS. That’s all folks, I hope this article should have given you a getting started introduction of Coded UI in Visual Studio. Please leave your comments!!! Thanks, Karthik KK