Alex is a Software Engineer working on Android development tools, especially Android Studio, at Google. His interests include Java, API design, OOP, IDEs and testing. Alex spends some of his spare time working on Open Source, blogging, writing technical articles, and speaking at international conferences. The opinions expressed here represent his own and not those of his employer. Alex is a DZone MVB and is not an employee of DZone and has posted 49 posts at DZone. You can read more from them at their website. View Full User Profile

FEST-Swing 1.2: GUI Testing Made Easy

06.08.2010
| 2119 views |
  • submit to reddit

I’m proud to announce the release of FEST-Swing 1.2!

FEST-Swing is a Java library that provides a fluent interface for functional Swing GUI testing. This library provides an easy-to-use API that makes creation and maintenance of GUI tests easy.

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

This version contains many new features, improvements and bug fixes. For example:

  • Better support for internationalization
  • Improved support for testing JTables and JTrees
  • New assertions for verifying tooltips and client properties on Swing components
  • New support for editable JComboBoxes as editors of JTable cells
  • New support for testing JProgressBars
  • New support for handling System.exit
  • New support for testing containers (e.g. JPanels) without a JFrame or JDialog
  • Fixed threading issues in ScreenLock
  • And much more!

For more details, please read the original announcement.

Links

Feedback is always welcome :)

 

 

0
Published at DZone with permission of Alex Ruiz, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)