I'd like to automate a process involving a Java UI application. The steps are basically as follows:
- call a batch file which starts that Java app with some parameters (memory: -Xmx 7G)
- wait for its Window to appear (can be identified e.g. by the title)
- click on the "File" menu of the app
- click on "Open"
- in the OpenFileDialog, paste the name of a file, and click "OK"
- wait (may take some minutes!) for a MessageBox to appear which indicates that the process has completed
- click "OK" on the MessageBox
- close the application
... That has to be run for every file (may be more than 100) in a specified folder.
Unfortunately, it is a tedious task for manual processing. They offer some tools for batch processing, but a decisive parameter cannot be set with those tools - WTF. Fortunately, after setting the parameters on their settings page, the application will remember them, so it is not necessary to repeat that step for every file, and also needs not be scripted either.
I do not know if that Java app uses AWT or Swing - so the tool should cope with both of them.
What I have tried:
There are some tools for *testing* a user interface. They might be usable here, but I am not a Java programmer.