You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may find xdotool in your distribution packaging:
Debian and Ubuntu: apt-get install xdotool
Fedora: dnf install xdotool
FreeBSD: pkg install xdotool
macOS: brew install xdotool or sudo port install xdotool
OpenSUSE: zypper install xdotool
Note
For Linux users, this tool only works with X11 sessions. Ensure you have X11 session installed for your desktop environment. If you're on Wayland, logout then login with X11.
Here's a script to automate the process
xdotool search --name "$1" windowactivate
xdotool key "KP_Tab"whileread -r LINE
do
xdotool type"$LINE"
xdotool key "KP_Enter"done<"$2"
To use it, copy the above to a file auto.sh
Next, create a file (in the same directory) with all your commands separated by newlines e.g.
help
list
Name this text file commands.txt
Run the script like this ./auto.sh [title] commands.txt where title refers to the title of the window, i.e. the string you passed into stage.setTitle() in your JavaFX application entrypoint
Write your test cases in an Auto Typer to test your program and just let it run. Here's how it looks in action.
java_Z2X7UZIutC.mp4
I use Auto Typer by MurGee.com
This is how it looks when set up
So why not set up yours now?
Happy testing!
The text was updated successfully, but these errors were encountered: