Forum Discussion
Didn't you got a warnning message like "Ambiguos window recognition" ?
I think this is becourse it could not recognise unique process or object
you may hav more that one objects would mapped for that criteria
(may be 4 objects)
Yes that's the message I get. the only two applications running are Setup.exe and Test Complete (or test execute). These are usuually running on completelly clean installs of windows and do not have anything else installed.
I'm open to ideas if you have any thought on how to work around this.
- Colin_McCrae10 years agoCommunity Hero
Have you had a look at the object browser to see if there are multiple versions of the process showing in there?
It may be that the application actually does start multiple processes and TestComplete is not realising that they are actually different components. I had a similar thing in the past where the process I was testing was starting a scheduled task, which created a second process, which TestComplete was thinking was the same as the main one. Caused me all sorts of confusion until I had a poke around in the object browser and realised there was actually a second, non-visible, process there ....
- coreyallen10 years agoOccasional Contributor
Yes there is a 2nd process however that's by design and not a mistake. Any suggestions on how to account for this?
- Colin_McCrae10 years agoCommunity Hero
If it's consistent (ie. the main process is always index 1, the started sub-process is always index 2) then you simply include the index numbers as identification properties in your name map of the top level process.
But the fact that yours varies, and also goes up to 4? - the second process accounts for 2, not 3 & 4 - suggests it's not consistent.
I'd have a very close look at the properties of each process and see if there is anything else in there you can use to differentiate between the two. Or you could use the "Required Children" option in name mapping? Presumably, the main process, that represents the GUI, has child objects the hidden sub-process doesn't? Use those to identify it?