I have problems with text controls recording. My tested application: desktop, WinForms, .NET 4.6
When I use "Coded UI Test Builder" then for new text controls it automatically creates following search properties:
ControlType: Text
TechnologyName: MSAA
Name: John
"Name" property value is the same as for "Display Text" one. If text is changed (e.g. John -> Jane) this control will not be found. I need independent search properties. Instead of "Name" property I would like to use "ControlName".
My search properties:
ControlType: Text
TechnologyName: MSAA
ControlName: lFirstName
Of course, I can change search properties manually after recording completion in UIMAP.uitest
Disadvantages of this solution:
1. Slow coding
2. Need advanced level tester
3. If you later use the "Coded UI Test Builder" again then it does not recognize such modified controls in UIMAP and creates "clones" for these ones.
a) Is it possible to configure Coded UI Test rules for recording to force it to use ControlName instead of Name?
b) Any other idea?