Forum Discussion
AlexeyKolosov
Staff
15 years agoHi Swathi,
for example, a text box which takes resource name ( it has an ID now and an entry in the name mapping). after all other steps, i come back to the same page, and enter the same resource name in the text field, but now, the text box mapped in the name mapping is different( i mean there is another entry).
The fact that another mapped name was created for the same object of the application means that the value of one or several object properties (they are called identification properties) which were used to map this object had changed. Despite the fact that you're working with the same actual object, TC treats it as another object as it has other property values.
To overcome this, you need to analyze how the values of the identification properties change and then exclude the varying part from the identification property's value. For example, one time, one of the object property has the 'value123' value, the second time, it will be 'value345'. So, you need to set the value of the identification property to 'value*'. When you're interacting with that object, TC won't create a new mapped object when the actual property's value changes to 'value345'.
I recommend that you read the 'Name Mapping - Overview' help topic to learn how the Name Mapping feature works.