Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
7 years ago
Solved

New Project Suite - Added Existing Tests - Now Unable to Find Object

I have some tests in Project Suite A that are working. When I added those tests to Project Suite B using "Add Existing Item", now they're suddenly getting "Unable to find object..." every couple of l...
  • tristaanogre's avatar
    tristaanogre
    7 years ago

    Bobik wrote:

    I think Project Suite B just doesn't have approriate objects in NameMapping. Try merge NameMapping from Project Suite A to  Project Suite B. Or map same objects in Project Suite B manually.

    https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/merging.html


    Bobik has the right of it, heidi_n.  Tests that reference onscreen objects are looking to the NameMapping file of whatever project they are stored in.  So, if Project B doesn't have that component mapped, you'll get exactly what you experienced.

     

    Another suggestion...  if the two projects are testing the same application, rather than maintaining two separate NameMapping files, you can do the whole Add -> Existing Item process to add the NameMapping file of one project to any other project.  You'd have to disconnect/remove whatever NameMapping file is on Project B but, after you do so, Add the NameMapping from Project A to Project B.  This way, any mapping changes you make in A will be immediately available to B and vice versa.