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