Skip to main content

Posts

Showing posts from June, 2014

Edit Coded UI Tests Using the Coded UI Test Editor

The Coded UI Test Editor lets you easily modify your coded UI tests. Using the Coded UI Test Editor, you can locate, view, and edit the properties of your test methods and UI actions. In addition, you can use the UI control map to view and edit their corresponding controls.

Testing a Large Application with Multiple UI Maps

Requirements Visual Studio Ultimate, Visual Studio Premium When you create a new coded UI test, the Visual Studio testing framework generates code for the test by default in a UIMap class. 

Coded UI control actions and properties

When you work with UI test controls in coded UI tests they are separated into two parts: actions and properties. The first part consists of actions that you can perform on UI test controls. For example, coded UI tests can simulate mouse clicks on a UI test control, or simulate keys typed on the keyboard to affect a UI test control.

Generate the Code for recorded control in Coded UI

When you choose  Generate Code , several pieces of code are created:

Validating the properties of UI Controls

You can use the  Coded UI Test Builder  to add a user interface (UI) control to the UIMap for your test, or to generate code for a validation method that uses an assertion for a UI control.

Creating Coded UI Test

Create a Coded UI Test project. Coded UI tests must be contained in a coded UI test project. If you don’t already have a coded UI test project, create one. In  Solution Explorer , on the shortcut menu of the solution, choose  Add ,  New Project and then select either  Visual Basic  or  Visual C# . Next, choose  Test ,  Coded UI Test .