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 window as WndClass: TMainView (no ObjectIdentifier). I can literally run it once, it sees the window as WndClass and my test fails; I immediately run the test again without changing anything, and it sees the window as ClassName and the test passes. I'm really confused. How can I get it to stop doing this?
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.
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.