Wednesday, April 11, 2012

Adding UI controls to UIMap for hand coding


Drag the cross-hair from Coded UI Test Builder and drop it on a control to see its properties. It will highlight the selected control. Now click on button Add Control to UI Control Map from Add Assertion window.

We can use [win+I] for highlighting the control if control is getting disappear while selecting the cross-hair from Coded UI Test Builder.

In VSTS 2012 [Win+I] is changed to [Ctrl+I].

Shortcut key for Add Control to UI Map is [Alt+C].

No Need to give any method name if we are adding just control to UI Map.