Forum Discussion
dharrison
15 years agoNew Contributor
I did get an answer from my inquiry thru support and thought I'd share it in the event others are still struggling with similar issues. As with Kim's post, Index was an unreliable property to use as a unique identifier for the object property. Each time I remapped the object's mapped name to include the index, when I reran the test there seem to be a different Index being used which made this reference unreliable.
Since changing the native name of these objects was not an option for us, we needed to find another property which would remain constant. We used an objectID.editvalue.olevalue with a boolean * for the variable parts.
The other challenge we were having was that once we had two objects open which shared the same native name the second object would 'steal' the name mapping from the first. The key we discovered was that we had to assign the identifying property(ies) to the original mapped object first before opening its twin. This way the twin opens without mapping and you can then, in the object browser, right click the now unmapped object, and select 'map the object name'. Otherwise Test Complete will indicate object is already mapped and will not allow you to map it with unique properties.
Since changing the native name of these objects was not an option for us, we needed to find another property which would remain constant. We used an objectID.editvalue.olevalue with a boolean * for the variable parts.
The other challenge we were having was that once we had two objects open which shared the same native name the second object would 'steal' the name mapping from the first. The key we discovered was that we had to assign the identifying property(ies) to the original mapped object first before opening its twin. This way the twin opens without mapping and you can then, in the object browser, right click the now unmapped object, and select 'map the object name'. Otherwise Test Complete will indicate object is already mapped and will not allow you to map it with unique properties.
Related Content
Recent Discussions
- 19 hours ago
- 7 days ago
- 10 days ago