The following example simulates a user logging-in into a Swing application.
The test verifies that an error message is displayed if the user forgets to enter her password.
dialog.comboBox("domain").select("Users");dialog.textBox("username").enterText("alex.ruiz");dialog.button("ok").click();dialog.optionPane().requireErrorMessage() .requireMessage("Please enter your .*"); // regular expression matching
FEST-Swing can test desktop applications as well as applets (in a viewer and in-browser.)
For more details, please visit the FEST-Swing github project.