Object Not Found during test but is mapped
Hi, I am having difficulty with testcomplete recognizing objects. My computer was recently upgraded to Office 365.
All my scripts fail (they all worked before). I get "waiting for object" warnings, after a while the message changes to "Preparing Object Recognition Hint". After another long wait, the script continues (succesfully) with the object copied to the clipboard.
I go into the log, click on the missing object, that opens the NameMapping window. The item is there, and there is a picture of the text box with a red border that I am after. When I right click and choose show in Object browser, it searches and gives error "Unable to find object that matches "pay_code"...Point to "pay_Code" on screen. so I try that and get the "Update Name Mapping" window. I use the "point and fix" and mouse over test box. The Object name is filled in, and when I click "Highlight" the text box in the application flashes red...the preview also shows the text I am after.
When I click finish, an error saying "The parent object hierarchy of the selected object does not match the expected hierarchy. Please re-map the object manually to reflect the changes".... I am confused, I am not remapping manually with the ":update Name Mapping: window???
Hi Leahy,
You need to play with mapping criteria used to map your objects. Please refer to the following explaining in detail the suggested approach:
Name Mapping is a very powerful feature once you learn it in detail. Also, I recommend that you watch the following video explaining how to handle objects whose mapping criteria are changed from run to run (like in your case):
https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/
This video is quite old. However, it's still extra helpful.