Forum Discussion
tristaanogre
15 years agoEsteemed Contributor
The problem may be in the NameMapping of the window with the button and the button itself. Your keyword test is looking to see if the reference in the test in Aliases exists... the "Waiting for" is TestComplete telling you that it's trying to find it. Apparently, it's not. so, this means you need to investigate the NameMapping for the button and/or the window.
Another possibility may not necessarily be with recognition of the button but with what I call "timing issues". The scripts are executing at full speed without wait time. However, between one step and another, the application being tested may have a delay before the next screen shows up. This could cause recognition errors.
As a test, before the test where the button needs to be clicked, put a "Delay" action in place. The other thing you might want to do is add an "If Object" action in before the button to do a test to make sure the window with the button exists before you try and click the button. No coding necessary, but these kinds of timing issues and recognition issues happen no matter what tool you're using and whether or not you're using code or keyword tests.
Another possibility may not necessarily be with recognition of the button but with what I call "timing issues". The scripts are executing at full speed without wait time. However, between one step and another, the application being tested may have a delay before the next screen shows up. This could cause recognition errors.
As a test, before the test where the button needs to be clicked, put a "Delay" action in place. The other thing you might want to do is add an "If Object" action in before the button to do a test to make sure the window with the button exists before you try and click the button. No coding necessary, but these kinds of timing issues and recognition issues happen no matter what tool you're using and whether or not you're using code or keyword tests.