Forum Discussion

pankaj_h17's avatar
pankaj_h17
Occasional Contributor
14 years ago

Object recognition chnaged when scripts are upgraded from 6.52 to 7.52

Hi, recently we have upgraded our Test Complete version from 6.52 to 7.52. The scripts which were developed in 6.52 for our Desktop apllication, were auto-converted to 7.52 when opened with version 7.52 IDE.

But the issue is that the "Object Recognition" or the Tree path of the desired application's objects have changed. SO please let us know how can we solve this issue. (Is it that we need to do some change in settings?)



For Example, lets consider a window recognition of our Desktop application (named Distributor Department)

In TC 6.52 : Sys.Process("wrun32").Window("AcucobolWClass", "Distributor Inquiry*", 1)

In TC 7.52 : Sys.Process("wrun32").Form("Distributor Inquiry*")





Attached document depicts some more examples. So, somebody please suggest us the possible solution.

3 Replies

  • Hi,



    You need to enable the 'Work with MSAA objects in mode compatible with TestComplete 6 and earlier' option in MSAA properties (see the "Project Properties - MSAA Options" help topic).
  • pankaj_h17's avatar
    pankaj_h17
    Occasional Contributor

    1. For the first time when tried to work with the above solution, I have opened the scripts in TC 7 IDE and then enabled the 'Work with MSAA objects in mode compatible with TestComplete 6 and
      earlier' option in MSAA properties. We found no update in the Scripts and they again failed in desired Object Recognition of our desktop application.

    2. Later, for the second time we have initially Enabled the 'Work with MSAA objects in mode compatible with TestComplete 6 and
      earlier' option in MSAA properties of TC 7 IDE and then tried to open the TC 6 Scripts in TC 7 version.



    • There after we could see that the Object Recognition method in TC 7 was same as that we had in TC 6.


    So, please let us know what has actually happened? That is.. Is it that we always need to follow second procedure while changing any setting or do you think that something else we have done in our settings? (I was working with various settings like Tree settings, Script Updation and so on)

  • Hi,





    When you enable this option, TC will not modify existing scripts. It will change the way it names objects. You need to enable this option and use old scripts after that.