"Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
Greetings,
I have a keyword test for a Java Swing application that is working perfectly fine. However, I am noticing behavior that I don't understand that I believe is making the execution time of the test unnecessarily long. There are several dialog boxes that pop-up in the app during test execution. When I am done interacting with the dialogs, I am closing them by doing a ClickButton operation on the "Close" buttons on each dialog. These buttons are javax.swing.JButtons. TestComplete is correctly clicking on the buttons and the dialogs are dismissed, but then, strangely, I can see in the "indicator" a message like, "Waiting for [Button] Object" and the test paused for several seconds. Normally, I am used to seeing such pauses BEFORE interacting with components. Anyway, I feel like, when you add up all the times that this happens in my test, it is costing me about half a minute (in a test that runs in three minutes). Does anyone have any answers for why this is happening, or what I can do to prevent it from happening so that I can reduce my test execution time?
OK, so SmartBear did find me a solution that worked fine. It was actually a bug in TestComplete, and they provided me with a patch that fixed the behavior. After applying the patch, TestComplete not longer "waits" for buttons it already clicked. It shaved off quite a bit of execution time from my test. The patch they gave me was not in that recent big update, but they assured me that the fix will be in a future release.