Testing Swing applications using JRuby
Posted on June 10th, 2009 by
Matt Fletcher
Demetrius Nunes recently posted about his Swinger library to the JRuby mailing list. Swinger uses Cucumber and Jemmy to provide a test harness for automating Swing tests.
I responded to Demetrius letting him know how great it is to hear others are interested in automating Swing testing. We’ve been using a combination of FEST and Ruby helpers specific to our own Swing applications. As Demetrius notes, Swing tests can be frustratingly brittle, but they are still well worth the investment. Swinger looks like it is both extensible and can help alleviate some Swing testing pain.
You can check out my response here and the entire discussion here.
Filed in: Technologies, Test Driven Development


Demetrius Nunes Says:
June 11th, 2009 at 04:04 PMOh man, you have no idea how we love the Presenter First process and your MVP articles!! We use it all the time!
I event wrote a simple MVP JRuby's presenter_first library based on Monkeybars for a sample app I wrote about in an article that's getting published to brazilian's "Mundo Java" this month!
If you want to take a look at it, see this presenter code for the app here to see how it feels like: http://github.com/demetriusnunes/linecounter/blob/0092e17fba81223b73dc611eca68c66e2ac1d0f6/src/main_presenter.rb
The presenter_first lib is here: http://github.com/demetriusnunes/linecounter/tree/0092e17fba81223b73dc611eca68c66e2ac1d0f6/lib/presenter_first
I soon intend to turn it into a project/gem of its own and post about it in my blog. Wanna help me?
Cheers!
Demetrius