Object recognition broken in TC12 by new "hint"-Feature
Hello,
I am currently evaluating the new TestComplete (Desktop) Version 12.20 (coming from TC V.11.30) and am experiencing trouble migrating my ProjectSuite. The new "Object recognition hint"-Feature has proven to be quite a backlash, because the test run, that did run very smoothly in TC11, is now filled with these hints which are in fact preventing correct execution of object manipulation actions.
From what I can tell, actions fail, whenever indexes (in objects and processes alike) are used in the name mapping.
Example 1:
There is a root object called ["WinFormsAdapter1"], which is one of several instances. The only way to reliably differentiate between them is the index, however when the test sequence is executed, TC 12 warns (and in fact fails) at this object and suggests in the hint-warning to remove the index out of the name mapping file (which of course doesn't make things any better).
Example 2:
To control two instances of the same process, I have assigned a global variable to the index property in the name mapping.
The index in this variable is switched at runtime after which the mapping tree is refreshed.
Again that worked very well and reliable in TC11 but fails in TC12.
So my question is:
Is this new behavior a known issue? Is there any why to disable this new "improved" object recognition feature?
Regards,
Mark
Well, it turned out that this was the same issue after all, that other posters here had as well.
The problem in my project was the strict behavior control of all routine-chains, meaning that a routine will only execute if its prerequisite-routine returns true (which it doesn't as soon as an uncatched error or warning occurs).
So it seems that this problem doesn't have a (satisfying) solution except maybe waiting for an upcoming TC version while hoping that this feature request will be in it.
Regards