Forum Discussion

greendarkness's avatar
greendarkness
Contributor
15 years ago

Automatically update name mapping items

I just started working with TestComplete and have been asked to start updating some projects from TC 7.52 to TC8. The web application we are working with has also been updated, though I do not think the structure of the elements has changed on the pages I'm currently updating. After loading the project in TC8 I've been going through changing the name mapping manually. I found the Automatically update name mapping items option checkbox and help topic, but selecting it and running the tests continues to just error out whenever it does not find an object. Is this an issue, or have I forgotten a setting somewhere?

6 Replies

  • Automatically update name mapping items - its seems to be like, when TC or TE cann't find some object, it offers re-mapping your map of object. Btw, you can create alices between project variables and properties of object
  • Hi,



    Check your Name Mapping scheme. Most probably, the problematic objects are mapped by properties whose values change from run to run. Use only properties with stable values to map your application's objects.
  • The properties haven't changed just it's an old name mapping. It seems that most seem to use the property ObjectIdentifier, which does not appear to exist. Most are fixed if I remove this property. But some of the items moved slightly or deeper with the new software, so where it was cell>terms it is now cell>table>cell>terms so the object is not found. This is what I was hoping to use the automatically update name mapping items for.
  • oh also with the ObjectIdentifiers, they tend to not make the objects not found. But if I were to map an object under ones already mapped it asks me to remap all above items unless they are removed.
  • Turn out most of the trouble I was having came from an object that was showing up twice in the object browser. All the properties were the same except for the width was zero on the one I didn't want to use. I switched the mapping to conditional mode and added an AND width is greater than zero. Which should have worked. Few hours later having issues where both objects when selected in the browser would point to the mapped alias and the alias pointed to the object with width zero. I changed the greater than to not equal to and all works now.