cancel
Showing results for 
Search instead for 
Did you mean: 

Name Mapping issue ("Object not found" error)

SOLVED
Highlighted
New Contributor

Name Mapping issue ("Object not found" error)

We are a team of 3 working on desktop application automation. When we try to execute one script from system A in system B "Object not found" error is thrown. Please suggest how to proceed. If we merge name mapping files and make a master copy, will that allow the script to run successfully in individual systems? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Name Mapping issue ("Object not found" error)

Merging your name mapping could help, yes.  Be sure and keep a copy of each individual one in case you want to start over.

 

Once you are working from the same mapping, if you still get the object not found errors, then the easiest thing to check is to see if it's a timing issue.  You may need to put some Wait or Delay messages in to make the test work amongst many machines.  

 

Let us know what happens after the name mapping merge and we can go from there.

View solution in original post

4 REPLIES 4
Contributor

Re: Name Mapping issue ("Object not found" error)

You need to supply more detail to obtain a precise answer.  Some things to look at:

1.  For desktop applications, not all desktops are built the same and some objects may be named differently.  I find this particularly applies to WinWord processes.  You need to determine what objects are found on one desktop and not on the other and then review what properties identify those objects in name mapping.  Once you identify the name mapping aliases / identifiers.   What are the differences between the identification properties on the two machines?  Are you able to modify/regularize the object identification properties to allow for the different object identification properties on the different machines?  If not, research how to use the findchild/findchildren methods in Testcomplete.

Community Hero

Re: Name Mapping issue ("Object not found" error)

Merging your name mapping could help, yes.  Be sure and keep a copy of each individual one in case you want to start over.

 

Once you are working from the same mapping, if you still get the object not found errors, then the easiest thing to check is to see if it's a timing issue.  You may need to put some Wait or Delay messages in to make the test work amongst many machines.  

 

Let us know what happens after the name mapping merge and we can go from there.

View solution in original post

New Contributor

Re: Name Mapping issue ("Object not found" error)

Thanks for the reply!. Added delays to the script. But still same error. The mapped object is not found or recognized when the name mapping files are merged. Should I re-map or spy the object which is not found and add it? 

Contributor

Re: Name Mapping issue ("Object not found" error)

Spy the object and determine what the property differences are.  Once you determine the property differences - you will be able to make an informed decision if adding a new object to the namemapping files or modifying the current properties of an object already in the namemapping files is the correct response.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors