Coded UI Editor – Guide
Coded UI Editor – Guide
Feature Pack 2 is Available! and it’s Awesome!
The feature pack comes with some great features and the one I want to talk about in this post is – Coded UI Test Editor.
I’ve recorded a simple CUIT on Windows Calculator that adds to numbers and show the result.
Getting Started
After you install the Feature Pack 2 you will notice that Double Click or Right click on “UIMap.uitest” file will open a new window contains all CUIT Actions.

The new screen contains the Method Names (When you generate the code), the actions under each Method and on the right you can see the controls relate to those method.

Method Properties
While selecting the Method you may perform the following Actions:

- Find the method use in the entire CodedUI Test.
- Delete those Method – (Next Time you Generate the CUIT this method will not be Generate)
- Change Method Name.
- Move the Method to UIMap.cs –Why? Very good questions – Any code Changes you will make in “UIMap.Designer.cs” will be overwritten once you generate new code for the CUIT.
The result of moving the code will be a follow:

Action Properties
While selecting the Method you may perform the following Actions:

- Properties – For each action you can modify the properties.
Foe example – Change Mouse action to Double Click instead of Click. - Split into a new method

- Inset Delay Before – The delay in milliseconds

Controls Properties
During the CUIT Code Generation each control contain the search properties in order to identify that control during playback – those properties called “Search Criteria”.
Until today those search criteria was static and cannot be change without code customizations, now using Coded UI Editor you can define what are the properties you wan to use in order to Define you control in the best way!

Example – Very common scenario for recording applications using CUIT is the Window Title, the window title isn’t static and can be change and this can herm CUIT playback.
Using Coded UI Editor you can change that criteria or add new criteria for identifying that window not just by the Title.

To Improve CUIT playback performance you can add more “Search Criteria” to help CUIT to identify the control faster.

Enjoy