I have an Java Swing AUT that needs to be closed and reopened multiple times during the test. about 1/4 of the time the application is invoked, but does not come up as an Active window, or one with Focus. It is greyed out as though it is sitting in the background.
I have tried a number of things but to no avail. I am using the Start() method to call the application, and the application never reports back as loaded, so the Start method basically never finishes its job.
It makes no difference if this is run remotely, or on the local machine. Behavior is the same.
Any ideas? BTW, this is very closely related to the question posted by Girja on SilkTest opening multiple applicatons.
Styler, innovative approach, but no change. GK, I have not tried the Alt-Tab yet, but that may work. I can put together a routine that checks for the application to be active and keep sending the Alt-Tab keystroke until that is true.
ever try just creating your own Invoke() methods for the applications you are trying to start by just pointing to the .exe file to start the app?? once your invoke is set, create another method called Exists (nTimeout) which will just check for a particular object in the first window of your app. the Exists () method will be a BOOLEAN with an optional number of seconds for SilkTest to wait until the window appears.