[jruby-user] Swinger video

1 view
Skip to first unread message

Demetrius Nunes

unread,
Jun 10, 2009, 12:15:20 AM6/10/09
to us...@jruby.codehaus.org
Hi guys,

I've just posted a small 30 sec video demoing Swinger, a JRuby-Cucumber step definition library for testing Java/Swing applications. Here's the link:
Anyone has the same need for testing Swing apps?

Regards,
Demetrius
--
____________________________
http://blog.demetriusnunes.com

Charles Oliver Nutter

unread,
Jun 10, 2009, 1:05:15 AM6/10/09
to us...@jruby.codehaus.org
On Tue, Jun 9, 2009 at 11:15 PM, Demetrius
Nunes<demetri...@gmail.com> wrote:
> Hi guys,
> I've just posted a small 30 sec video demoing Swinger, a JRuby-Cucumber step
> definition library for testing Java/Swing applications. Here's the link:
> http://blog.demetriusnunes.com/past/2009/6/9/who_said_you_cant_test_swing_apps/

That's pretty cool :) I'd say just about anyone who writes Swing apps
has this need.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Demetrius Nunes

unread,
Jun 10, 2009, 1:19:35 AM6/10/09
to us...@jruby.codehaus.org
Thanks for the tweet and reply Charlie, I appreciate it. Let's see if other people get excited about it.

Cheers.
--
____________________________
http://www.demetriusnunes.com

Matt Fletcher

unread,
Jun 10, 2009, 11:42:59 AM6/10/09
to us...@jruby.codehaus.org
This is great. It's nice to hear that there are others interested in automated Swing testing.

At Atomic Object, we have been creating automated tests using a combination of FEST (http://code.google.com/p/fest) and Ruby helper methods wrapping functions specific to our application. For example, the Ruby 'play' method wraps the FEST operations needed to start our simulator (http://spin.atomicobject.com/2009/01/30/ruby-for-desktop-applications-yes-we-can). Likewise, 'reset' presses the appropriate buttons to reset the simulator.

We haven't published anything since our helpers are so tuned specific to our applications. Swinger looks like a great start to a highly reusable Swing testing harness.

Jemmy looks like an interesting library. Do you have any experience with FEST? It looks like Jemmy tries to be just a robot, whereas FEST provides finders along with a robot. Does this sound about right?

David Koontz

unread,
Jun 10, 2009, 1:25:49 PM6/10/09
to us...@jruby.codehaus.org
That looks spiffy.  I know Logan Barnett started in on Cucumber steps for stuff we were doing with Monkeybars using just reflection to get at the components but using Jemmy is probably a better way of doing this.

David Koontz

Michael Campbell

unread,
Jun 10, 2009, 2:03:23 PM6/10/09
to us...@jruby.codehaus.org
Demetrius Nunes wrote:
> Hi guys,
>
> I've just posted a small 30 sec video demoing Swinger, a JRuby-Cucumber
> step definition library for testing Java/Swing applications. Here's the
> link:
> http://blog.demetriusnunes.com/past/2009/6/9/who_said_you_cant_test_swing_apps/
>
> Anyone has the same need for testing Swing apps?

I have to say that when I first saw this mail, I thought for sure it was spam. =)

Jay McGaffigan

unread,
Jun 10, 2009, 2:11:54 PM6/10/09
to us...@jruby.codehaus.org
LOL.

I often feel like I'm way out of touch..

Swinger, drools, jemmy, monkeybars, cucumber, webrat...

It seems like every day there are a ton of new gems... Which is AWESOME..

Although it's hard to keep up :P (and fulfill the duties of my day
job, and family life :P)

Jay

Logan Barnett

unread,
Jun 10, 2009, 4:38:07 PM6/10/09
to us...@jruby.codehaus.org
I'm definitely going to hook this into Monkeybars. Thanks!
On Jun 9, 2009, at 9:15 PM, Demetrius Nunes wrote:

mdrn28

unread,
Jun 10, 2009, 4:57:21 PM6/10/09
to us...@jruby.codehaus.org

Michael Campbell-4 wrote:
>
>
> I have to say that when I first saw this mail, I thought for sure it was
> spam. =)
>
>

Oh good, I'm glad I'm not the only one who thought it was spam. :-)

--
View this message in context: http://www.nabble.com/Swinger-video-tp23955492p23970873.html
Sent from the JRuby - User mailing list archive at Nabble.com.

James Britt

unread,
Jun 10, 2009, 6:15:58 PM6/10/09
to us...@jruby.codehaus.org
David Koontz wrote:
> That looks spiffy. I know Logan Barnett started in on Cucumber steps
> for stuff we were doing with Monkeybars using just reflection to get at
> the components but using Jemmy is probably a better way of doing this.
>

One big problem I ran into with cucumber + Monkeybars was exiting the app.

If I had a spec that that clicked the Exit menu item, for example, the
entire JVM process was ended, including the spec run. As a result I
would not get any final report.

Some hackery got me around that, but a better solution would have the
app being tested isolated from the process doing the testing.


James

--

Neurogami - Smart application development

http://www.neurogami.com

ja...@neurogami.com

Demetrius Nunes

unread,
Jun 11, 2009, 12:01:07 AM6/11/09
to us...@jruby.codehaus.org
On Wed, Jun 10, 2009 at 12:42 PM, Matt Fletcher <flet...@atomicobject.com> wrote:

Jemmy looks like an interesting library. Do you have any experience with FEST? It looks like Jemmy tries to be just a robot, whereas FEST provides finders along with a robot. Does this sound about right?

Never seen FEST before. Looks good as well. Don't know how would it compare to Jemmy.

About Jemmy: it's not only a robot. It implements several "finder" strategies for  locating each widget within the app and let's you implement your own as well. For instance, in Swinger, I've implemented a findByTooltip strategy for buttons, using JRuby. Jemmy is used by the Netbeans team to test Netbeans itself, so it's pretty complete.

Cheers!
Demetrius
--
____________________________
http://blog.demetriusnunes.com

Demetrius Nunes

unread,
Jun 11, 2009, 12:02:44 AM6/11/09
to us...@jruby.codehaus.org
I really like Monkeybars (although I prefer to use MVP instead of MVC). Let me know if you need any help!
--
____________________________
http://www.demetriusnunes.com

Demetrius Nunes

unread,
Jun 11, 2009, 12:04:11 AM6/11/09
to us...@jruby.codehaus.org
Hehe, it was meant to be kinda of funny... Not sure if it was a good idea for search engines and spam filters though.
--
____________________________
http://www.demetriusnunes.com
Reply all
Reply to author
Forward
0 new messages