Java News from Monday, January 21, 2008

Fixtures for Easy Software Testing has posted FEST-Swing 0.8, a Java library that provides a fluent interface for functional Swing GUI testing. Here's an example they give of testing that an error message is displayed if the user forgets to enter their password when logging in:

dialog.comboBox("domain").select("Users");
dialog.textBox("username").enterText("leia.organa");
dialog.button("login").click();
dialog.optionPane().requireErrorMessage().requireMessage("Please enter your password")

Looks good but the devil is in the details. I'll have to play with this some before I can see if they've finally cracked this tough nut.