Forum Discussion

johndoe's avatar
johndoe
New Contributor
9 years ago
Solved

Objects' properties lost as the same objects are now mapped differently

Hello all,

 

I have been using TestComplete to write automation scripts for my desktop application.

Suddenly, the name mapping doesn't work properly, as the same objects are mapped differently now, having only a few properties and methods that can be accessed. Therefore, all my tests fail, as the aliases from name mapping are not recongnized.

 

After googling the problem, I have tried to change the project's properties from the "Open applications" and "Object mapping" sections, but did not manage to reach the initial mapping again. I have even reinstalled TestComplete to have the default settings back, but again, without any success. 

 

Do you have any idea why is this happening now or do you have any suggestions for fixing the issue?

 

Please find attached below the printscreens for the initial object mapping (correct) and for the second object mapping (incorrect):

 

Initial mapping.png

 

 

Initial mapping.png

  • The first print screen shows Advanced View while the second one shows Basic View. To change from one view to the other, click the link at the top of the Properties tab.

4 Replies

  • dmiscannon's avatar
    dmiscannon
    Frequent Contributor

    The first print screen shows Advanced View while the second one shows Basic View. To change from one view to the other, click the link at the top of the Properties tab.

    • johndoe's avatar
      johndoe
      New Contributor

      Thanks a lot! That indeed did the trick with getting back the properties and methods.

      However, my old name mappings are still not usable.

      Can this somehow be related with changing the MSAA options? Or in other words, in which situations will the name mappings get lost? (please take into consideration that I did not change anything in the Mapped Objects tree or in the Aliases tree)

      • NisHera's avatar
        NisHera
        Valued Contributor

        what do you mean by 'name mappings get lost? '

        mapping do not get lost unless you delete it (if alredy saved)

         

         

        According to documents MASS option effects how TestComplete records object names and addresses objects during playback. The tests created in the compatibility mode will not play back correctly in the new mode and vice versa.