Forum Discussion

Ryu's avatar
Ryu
Contributor
7 years ago

TestComplete sees same window with different properties on different runs

Sometimes, when running a test on an application, TestComplete sees the main window as ClassName: TMainView / ObjectIdentifier: MainView (how it was originally mapped).  Other times, TC sees the same...
  • tristaanogre's avatar
    7 years ago

    OK... Now I understand.

    You have the same object mapped twice (In your project, you go to NameMapping and those two items are there).

    Basically this: Delete one of those mappings.  The Mapping is how TestComplete identifies an object.  So, it appears that, somehow, the same object has been mapped twice.

     

    My guess is that the second one (The one maped as WndClass: TMainView) is going to be the most accurate.  I'd delete the first one and see if that corrects your issue.

  • Ryu's avatar
    Ryu
    7 years ago

    I actually don't have the second one mapped; I mapped it a few times when the first one broke just to see what was happening, but then I deleted it.  Next time it happens I will try remapping everything to the second one and delete the first and see what happens.