permaculture playing cards
The moose likes Testing and the fly likes looking for Swing automated testing tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "looking for Swing automated testing tool" Watch "looking for Swing automated testing tool" New topic

looking for Swing automated testing tool

Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
I am embarking on a project in Swing; I would like to find an automated testing tool. My preferences are:

1. human-readable test scripts; recording input is good, but I will live without it
2. find controls to operate on by some identity search, not by screen position. I'll add a name to all my controls if that's easiest
3. if the test scripts are NOT in java, that's a plus. But I prefer Java to XML.

The really frustrating thing is I think I was reading the documentation for such a thing a couple of weeks ago, and now I can't find it. I put search terms into google to find it as best I can remember, and it gives me a couple of hundred things none of which look the same.

So maybe I dreamed it. But if I can find something with the above characteristics, that'll be good.

And does anyone know about Jemmy? It looks promising, but the project website for it has broken links and was acting squirrelly this morning...

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10824

We have a forum dedicated for testing/tools. I will move your question over there for you. I think you will get a better response there.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1101

marathon is an excellent choice for GUI testing.

This satisfies all of your points:
1. Script is in Jython - so, human readable. Importantly, the tool has recording/playback and writes the script when we are 'recording'.
2. This operates on the component's name. So, call setName on all your components to get easy to understand scripts.
3. Script is in Jython.

This is modelled on JUnit, so concepts are similar - test cases, test suites, assertions and so on...

David Byron

Joined: Jan 20, 2009
Posts: 172

Another interesting option is Squish.

OCMJD 6, OCPJP7, CISSP Baroque Potion, G+
I agree. Here's the link:
subject: looking for Swing automated testing tool
It's not a secret anymore!