Forum Discussion
karkadil
11 years agoValued Contributor
When you are talking about window_1, window_2, etc., do you mean that this is the same control, but it is recognized differently during each application run?
If yes, then leave only one such object in the NameMapping, but change the dynamic part of the property which is changed.
For instance, if you have two identical windows with the same controls inside them and the same class name, but in one case its caption is "Window 123", and in other case it is "Window 456", you can use wildcards to replace this dynamic text. Change the caption to "Window *" and TestComplete will always recognize it as one window, nor different ones.
If yes, then leave only one such object in the NameMapping, but change the dynamic part of the property which is changed.
For instance, if you have two identical windows with the same controls inside them and the same class name, but in one case its caption is "Window 123", and in other case it is "Window 456", you can use wildcards to replace this dynamic text. Change the caption to "Window *" and TestComplete will always recognize it as one window, nor different ones.
Related Content
Recent Discussions
- 2 days agoMW_Didata