brama
brama

Reputation: 123

automate java desktop application actions

I developed a java desktop application where the user can manually load a file and press a button to start a simulation process. I want to automate the above two steps so that an external program can iteratively call this desktop application multiple times and run the simulation process without any human intervention every time. Any thoughts on how I can go about doing this?

Upvotes: 1

Views: 1019

Answers (2)

He Shiming
He Shiming

Reputation: 5819

I know this is an old question. But there is a new solution now, JAuto: a JVMTI agent that runs in Java VM and expose UI widget attributes such as class names, screen coordinates. You talk to JAuto by sending a command to a named pipe. It responds by writing a file. It lets you control a Java program via bash scripts.

Using an input simulator such as xdotool, you can achieve automation under the Linux X11 settings.

Disclaimer: I'm the author of JAuto.

Upvotes: 1

1ac0
1ac0

Reputation: 2939

It depends on which OS you do it.

If OS X, use automator, for Windows you can use winautomation and for Linux use google and search (for example) kde automation.

Upvotes: 1

Related Questions