Forum Discussion
1 Reply
- Marsha_R
Champion Level 3
When the object name changes (in your example from buttonkeep to buttonkeep4), then the mapping for the old object name will not automatically apply to the new object.
You can adjust the mapping using wildcards so that it will try to match buttonkeep* instead.
https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html#InNameMapping
- Largent803Contributor
My problem is the object name should not be changing. I can put in new data with a new record within 15 minutes that uses the same data. So the object name doesn't change. In fact the title of the object is the same. In my example the name of object is Keep and it is a button. But somehow it loses this mapping. In this case the test is to copy data from a Word file into a websites textbox. It also does the same with a Excel spreadsheet data. After I paste the data into my textbox the dialog Keep comes up to so that this verified as information that is needed to be kept.
- Marsha_R
Champion Level 3
If the object name needs to be static, then that's something to discuss with your developers. TestComplete just reads what it finds, it doesn't create the object names.
In the meantime, the wildcards will keep the changing object name from affecting your tests. It's a common need among TestComplete users.