I am in the process of developing an automated acceptance test for a Java application that would be executed as part of our nightly build process. Our goal is to have a completely automated acceptance test suite that will not require manual intervention from the receipt of the build notification to test completion.
I have successfully automated the process of installing the Java app after receipt of build notification, and the acceptance test suite for the Java app is complete, but the part that is missing (and thus requires manual intervention) is re-running the Java Enabler after the app is installed.
The Java Enabler cannot be executed by Robot itself, and I have had no luck in determining the appropriate command line switches to allow the Enabler to be executed from a Batch file. I would appreciate any suggestions that you might have to solve this problem.
All that the Java enabler does is :
1. Copies the sqarobot.jar file to the <JRE>/lib/ext directory
2. Adds the string "
assistive_technologies=rational.robot.sun.Sun12Win dowMonitor" to the accessibilty.properties file in the <JRE>/lib directory.
This steps ensure that the JVM loads the required Robot classes whenever the JVM is launched.
If you can do the above 2 points by other means in your build process, you need not run the Java Enabler at all.
Morever note that once this is done for a JVM, you need not do it again, unless your application also has a bundled JVM with it.