Forum Discussion
We need to see screenshots of your object tree for the application, code or KWT examples, and what your name mapping looks like. More than likely because you are just recording the test and letting the object be mapped automatically, you are not providing a good criteria for your mapped objects.
Recording and automatic name mapping is great for a starting point, or figuring out what objects you need, but will never be reliable on it's own. You MUST go in and update your identification properties to something reliable.
Thanks for your replies so far.
The mapping looks quite simple to me and, as far as I can make out, the static properties TestComplete is looking for, to identify the "msiexec" process, are more or less the same since the beginning.
Here is a screenshot of the object tree:
And here is a screenshot of NameMapping:
And a keyword test for installing:
Fred
- cunderw6 years agoCommunity Hero
You say "to identify the "msiexec" process, are more or less the same since the beginning." Which leads me to believe maybe something there is changing? In your object tree I also see more than one msiexec object. What does your mapping look like for that?
Also, where exactly is it failing? And what is the error message for the failure?
- Prodigio6 years agoOccasional Contributor
Thanks for your reply, cunderw.
I recreated the tests for the installer. So the properties of the msiexec process are the same since then. The second msiexec process somehow belongs to the first one. Don't ask me how, but it starts when I execute my installer. And there is no mapping for it, since all I need is on the msiexec process which is shown collapsed in the object tree screenshot.
If something is changing during rebuilding of the installer, I don't the it in TestComplete. Because I can highlight everything with TestComplete on the new builded installer, to me the mapping seems to be okay.
TestComplete is telling me that it cannot find the
Aliases.msiexec.wndMsiDialogCloseClass.btnWeiter
.Do you need any other screenshots to find the cause?
Fred
- cunderw6 years agoCommunity Hero
If you can highlight the objects after run time, but they are only not found while running your test, then as tristaanogre mentioned it's probably a timing thing and you will need to include one of the wait methods for your objects to exist and be visible.
Related Content
- 4 years agoJackalNZZ