Struggled for a long time to get winrunner to handle java apps properly. Often found that record and play back did not work...
Place "\t" after edits helped...
Tried FOCUS_GAINED and FOCUS_LOST ... did not work..
Focus management issues are the problem
My final solution by trial and error!
One other Java/Winrunner trick which may be
applicable to you is adjusting the time out
values to allow for JVM Garbage Collection (GC). When a GC occurs the application will
be frozen in time for a time interval
ranging from milliseconds to 30 seconds
depending on the amount of memory used by
the JVM. This can cause Winrunner to time
out waiting for events. Adjusting the timers
upwards will help address this and make your
scripts run more reliably.
If your application uses a JVM heap size of
256MB or more this may help you.
Test Architect (Demolition Man)
Testability = 1/complexity
I have attempted to re-produce the double focus issue with no success. All my Java programs have so far worked with winrunner, i even created new objects extending from Java objects, and the Java add-in still did not break. Winrunner version 7.5, Java add in release for 7.5. No updates have been installed. Any ideas on how I can break the Java add-in?