Forum Discussion

kenny_trytek's avatar
kenny_trytek
Occasional Contributor
14 years ago

Dynamic Flex Object Recognition

Is it possible to allow TestComplete to automatically adjust to Flex application object name changes?  I want to recognize objects by either a regular expression for a name, or other properties entirely.  I have found the name mapping templates documentation and experimented with them, but that seems to still identify specific objects instead of adjusting to object property changes.



Example:

I have an application object named "DocumentViewer928".  On a new build, the name changed to "DocumentViewer9281" and the object could no longer be recognized by TestComplete.  I had to manually update the name mapping to accommodate this change.  Ideally, I would be able to specify the object name as something like "DocumentViewer\d+" for automatic updating/identification if the name changed so I wouldn't have to manually remap every build (there are multiple builds per day).  There are many objects that change their name in this manner all the time, so manually remapping is not a good option.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    You can add wildcarding into the name mapping like "DocumentView*" which will grab any object that starts with, at least, DocumentView.  That's the best way I know of to handle these kinds of dynamic changes.  Either that, or see if there are other properties or combinations of other properties that can be used to give a unique mapping to the object without having to depend upon a dynamically changing property.