ulTam
8 years agoOccasional Contributor
Aside from using name mapping, how do you handle a desktop app which has hundreds of similar fields?
I'm automating a WPF application which has hundreds of fields in one screen. Now most of them are of the same type and only differ in the WPFControlName.
Adding all these fields one by one and editing them in the name mapping, does not seem very efficient.
I know that you make use of find method to dynamically create objects. I'm thinking of creating a loop that would go through perhaps an array containing the different WPFControlNames and create an object for each.
But I'm fairly new to TestComplete and scripting, and I'm not sure where I should be placing this code. Do I put it in a separate unit? I don't want to have to use the find method everytime I need to use the field/object?