# Swinger video

**URL:** <https://www.ruby-forum.com/t/swinger-video/169909>\
**Category:** JRuby\
**Created:** [June 10, 2009, 6:15am UTC](https://www.ruby-forum.com/t/swinger-video/169909 "2009-06-10T06:15:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 6:15am UTC](https://www.ruby-forum.com/t/swinger-video/169909/1 "2009-06-10T06:15:54Z")

</div>

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:

> **[demetriusnunes.com](http://ww38.blog.demetriusnunes.com/past/2009/6/9/who_said_you_cant_test_swing_apps/?subid1=20230730-1209-245a-a892-c580d16a0c04)**
>
> This domain may be for sale!

Anyone has the same need for testing Swing apps?

Regards,  
Demetrius

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 7:05am UTC](https://www.ruby-forum.com/t/swinger-video/169909/2 "2009-06-10T07:05:36Z")

</div>

On Tue, Jun 9, 2009 at 11:15 PM, Demetrius  
Nunes[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](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

```

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 7:20am UTC](https://www.ruby-forum.com/t/swinger-video/169909/3 "2009-06-10T07:20:12Z")

</div>

Thanks for the tweet and reply Charlie, I appreciate it. Let’s see if  
other  
people get excited about it.  
Cheers.

On Wed, Jun 10, 2009 at 2:05 AM, Charles Oliver N.

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/4 "2009-06-10T17:44:07Z")

</div>

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/](http://code.google.com/p/fest/) ([Google Code Archive - Long-term storage for Google Code Project Hosting.](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](http://spin.atomicobject.com/2009/01/30/ruby-for-desktop-applications-yes-we-can)  
(  
[Ruby for Desktop Applications? Yes we can.](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?

On Wed, Jun 10, 2009 at 12:15 AM, Demetrius Nunes

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/5 "2009-06-10T19:26:14Z")

</div>

That looks spiffy. I know Logan B. 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 K.

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/6 "2009-06-10T20:04:22Z")

</div>

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/](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. =)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/7 "2009-06-10T20:34:15Z")

</div>

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 😛 (and fulfill the duties of my day  
job, and family life :P)

Jay

On Wed, Jun 10, 2009 at 2:03 PM, Michael  
Campbell[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Anyone has the same need for testing Swing apps?

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/8 "2009-06-10T22:58:01Z")

</div>

Michael C.-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](http://www.nabble.com/Swinger-video-tp23955492p23970873.html)  
Sent from the JRuby - User mailing list archive at [Nabble.com](http://Nabble.com).

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 10, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/swinger-video/169909/9 "2009-06-10T22:38:39Z")

</div>

I’m definitely going to hook this into Monkeybars. Thanks!

Logan B.  
removed\_email\_address@domain.invalid  
[http://www.logustus.com](http://www.logustus.com)

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 11, 2009, 6:01am UTC](https://www.ruby-forum.com/t/swinger-video/169909/10 "2009-06-11T06:01:49Z")

</div>

On Wed, Jun 10, 2009 at 12:42 PM, Matt Fletcher  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 11, 2009, 12:31am UTC](https://www.ruby-forum.com/t/swinger-video/169909/11 "2009-06-11T00:31:50Z")

</div>

David K. wrote:

> That looks spiffy. I know Logan B. 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](http://www.neurogami.com)

[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 11, 2009, 6:04am UTC](https://www.ruby-forum.com/t/swinger-video/169909/12 "2009-06-11T06:04:45Z")

</div>

Hehe, it was meant to be kinda of funny… Not sure if it was a good  
idea  
for search engines and spam filters though.

---

<div class="post-metadata">

**Author:** ![Demetrius\_Nunes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Demetrius\_Nunes](https://www.ruby-forum.com/u/Demetrius_Nunes)\
**Post date:** [June 11, 2009, 6:03am UTC](https://www.ruby-forum.com/t/swinger-video/169909/13 "2009-06-11T06:03:34Z")

</div>

I really like Monkeybars (although I prefer to use MVP instead of MVC).  
Let  
me know if you need any help!
