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.0b1: GUI Testing Made Easy

  • submit to reddit

FEST-Swing is an Open Source Java library, released under the Apache 2.0 license, 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.

We are proud to announce the release of FEST-Swing 1.0-Beta1. This release includes many bug fixes and new features, including support for testing Java applets, killing running GUI tests using 'CTRL ALT A', common-use component matchers, and more:

  1. Fixed issue 11: Add support for Java applets.
  2. Fixed issue 14: Test 'shouldApproveFileSelection' in JFileChooserFixtureTest fails on Mac OS X.
  3. Fixed issue 146: JPopupMenuFixture#menuItemWithPath. Many thanks to Juhos Csaba-Zsolt.
  4. Fixed issue 158: Ability to set global component matcher. Many thanks to vnguyen.sqa.
  5. Fixed issue 165: not working. Many thanks to Simeon Fitch.
  6. Fixed issue 166: [PATCH] Add GenericFixture from Simeon Fitch. Many thanks to Simeon Fitch.
  7. Fixed issue 167: JListFixture#cellReader and similar methods should be modified to return the fixture. Many thanks to Juhos Csaba-Zsolt.
  8. Fixed issue 173: ContainerFixture.comboBox().select() fails to close comboBox *sometimes*. Many thanks to fred76131.
  9. Fixed issue 174: Add support for interrupting/killing tests - Patch from Simeon Fitch. Many thanks to Simeon Fitch.
  10. Fixed issue 177: JTableCellFixture#enterValue(String) with JComboBox as editor. Many thanks to Juhos Csaba-Zsolt.
  11. Fixed issue 179: JTreeFixture#separator(String) and similar methods should be modified to return the fixture. Many thanks to Juhos Csaba-Zsolt.
  12. Moved abstract methods in org.fest.swing.fixture.ComponentFixture to the interfaces FocusableComponentFixture, KeyboardInputSimulationFixture, MouseInputSimulationFixture and StateVerificationFixture.
  13. Moved classes KeyPressInfo and MouseClickInfo from package org.fest.swing.fixture to org.fest.swing.core.
  14. Replaced method pressAndReleaseKey(int keyCode, int modifiers) with pressAndReleaseKey(int keyCode, int... modifiers) in org.fest.swing.core.RobotFixture.
  15. Removed all methods related to keyboard input simulation from JListItemFixture and JTableCellFixture.
  16. Replaced IllegalArgumentException with NullPointerException when a method argument has null as its value.
  17. Replaced ActionFailedException and LocationUnavailableException with IndexOutOfBoundsException when an index is out of bounds (e.g. the row index in a JTable.)

FEST-Swing can be downloaded here (file FEST requires Java SE 5.0 or later.

Here are some useful links:

Also, check what people are saying about FEST!

Feedback is always appreciated :)




Average: 5 (2 votes)
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.)