Click here to Skip to main content
15,887,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 11-Nov-19 6:44am
Comments
Richard MacCutchan 11-Nov-19 10:53am    
Have you considered asking the people who wrote the app?

1 solution

Maybe you can use PowerShell UI Automation:
automation-testing-tools-for-a-medium-team-5-10-testers[^]

Also see: gui-automation-tools-for-windows[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900