Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Overview of this book

Table of Contents (14 chapters)
Visual Studio 2013 and .NET 4.5 Expert Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding how Coded UI testing works in Visual Studio


Visual Studio offers a Coded UI Test builder to record interactions with the application so that the tester can generate UI test cases automatically, and rerun the tests later on the projects to ensure everything is working as expected.

Coded UI Test refers to the black box testing that is performed by the application testers after the application development is finished. These tests include the testing functionalities of the controls to ensure that the whole application including the user interface is working correctly. Coded UI Tests are very useful when there are some validations or other logic in the user interface needed to be tested.

In this recipe, we are going to create a small application and try to test its functionalities using Coded UI Tests.

Getting ready

Let's create a small WPF application project. We will call it CodedUITestSample. Once the project is created, it will display a blank window with the designer. Drag a TextBox...