Forum Discussion

Leahy's avatar
Leahy
Contributor
6 years ago

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???

 

  • I believe what is happening is that it doesn't want to change the old pay_code mapping to pay_code2 because that looks like a different object to the mapping tool.  What it's asking for is for you to go the object itself and map it from there and you'll then have pay_code and pay_code2, which I realize is not what you want but that's what's happening right now.

     

    Does Office 365 affect the application you are testing?  Did your OS also get upgraded?  What else could have changed?

     

     

      • Leahy's avatar
        Leahy
        Contributor

        Thanks for checking in !!!  I have been very busy this week and will get back to this on monday.

         

        Lee