Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "looking for Swing automated testing tool" Watch "looking for Swing automated testing tool" New topic
Author

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 java.net project website for it has broken links and was acting squirrelly this morning...

rc
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Ralph,
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
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

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...


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
David Byron
Rancher

Joined: Jan 20, 2009
Posts: 172

Another interesting option is Squish.


SCJD 6, OCPJP7, Baroque Potion, G+
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: looking for Swing automated testing tool