Skip to main content

Swing Automated Test Harness (SwATH)

2 replies [Last post]
kolotyluk
Offline
Joined: 2007-01-02

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aberrant
Offline
Joined: 2006-02-02

This functionality might be interesting to implement as an MXBean. Instead of listening on some custom port.

http://java.sun.com/developer/technicalArticles/J2SE/mxbeans/

coxcu
Offline
Joined: 2003-06-11

I suggest you repost here:

Java GUI Testing Group
http://tech.groups.yahoo.com/group/java-gui-testing/

I doubt a JSR would be approved for this. Non-GUI (JUnit, TestNG, etc...) unit testing is much better understood and well established, yet has no official Java presence via a JSR.

Abbot is probably the leading open-source tool for Java GUI testing. That would be a good place to start.
http://abbot.sourceforge.net/doc/overview.shtml

The approach you are suggesting might ultimately require a custom Toolkit/GraphicsEnvironment. In theory, those are pluggable although implementation is quite a bit of work. I vaguely remember some company implementing a custom Toolkit/GraphicsEnvironment for GUI testing, but can't find a link. Fortunately, you can do a lot by adding a Toolkit listener.

Toolkit.addAWTEventListener()
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Toolkit.html#addAWTEventListener(java.awt.event.AWTEventListener,%20long)

One approach to Java GUI testing is outline here:

"XP Testing a GUI with FIT, Fitnesse, and Abbot"
http://www.csis.pace.edu/~bergin/xp/guitesting.html