GUI unit test tools?

Hi,

I'm developing graphical user interfaces with Swing and I have been unable to find any tools that allow me to unit test dialogs, components etc.

I'd be grateful to anyone who can point me in the direction of a tool that can assist me, or failing that has any truly useful suggestions, things that have worked for them in the past...

Thanks,

- Jack

[392 byte] By [AngloTiger] at [2007-9-27 15:43:57]
# 1
http://www.junit.org/index.htm
gussev at 2007-7-5 23:46:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
From what I've heard, JUnit doesn't provide facilities for testing a GUI. Some of the underlying support code perhaps, but not the dialog (for instance) itself.Have I been misled? Does it, in fact, allow one to test all individual GUI display components?- Jack
AngloTiger at 2007-7-5 23:46:35 > top of Java-index,Desktop,Core GUI APIs...
# 3
junit is only for unit testing.For testing GUI, you may need jemmy ( or other related tech )check: http://jemmy.netbeans.org/By using jemmy, you can test awt/swing stuff. ( it seems forte for java also use jemmy to test GUI layer )
Email55555 at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 4
I have used JUnit to test GUI widgets, but the trick to testing throughly is to leave your variables as packadge or public access. Not a great ideal, but otherwise you can only black box test your classes.
Keen at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 5
see JFCUnitbest regardsStas
StanislavL at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 6
Try a tool called QftestJUI http://www.qftest.deOr you could always try JFCUnit as mentioned. In QFTestJUI you don't really have to code anything, really easy and powerful :-)
ekren at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 7

I've used JFCUnit and QFTestJUI.

JFCUnit is good but really tedious, specially when you want to click certain buttons or hit the tab key in a table etc. Its good but not sufficent to test everything that you might need.

QFTEst, is really simple, it works on the record and playback mechanism.

The only draw back is that its not free, but its not that expensive and worth it.

help_me1 at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 8

Just spotted this & wanted to 2nd the qftestJUI suggestion.... We've researched & tried Java GUI testing tools and are very impressed with qftestJUI.

As prior post said, you can start quickly & easily with qftestJUI but the product is *very* deep. With more sophisticated use you can build test scripts that are very resilient to change (moving UI components around, even potential for JVM & OS migration).

I'm not associated with qfs or benefit from this recommendation. Having created extensive GUI test scripts in other, more expensive products and having the scripts fail with minor app or JVM changes, we've found qftestJUI scripts more capable of coping with change.

You can download it, look over the docs & get a free 4-week eval and give it a try. You may find it less expensive (and better designed) than the heavily advertised tools in the segment... Certainly better/cheaper than having people do visual regression testing or worse, letting bugs out the door...

Good luck,

Chris

cforster at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 9
There is a list of freely available GUI unit and/or functional test tools at http://groups.yahoo.com/group/java-gui-testingunder the "Links" section.
twalljava at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...
# 10

Hi Chris,

From your reply I understand you have worked extensively on GUI automation.

I need some help on this.

We use ILOG Jview Telecom Graphic Objects (JTGO -

http://www.ilog.com/products/jtgo/) in our EMS software.

Iam looking for a GUI automation tool that has support for JTGO, or a tool to which we can easily integrate JTGO w/o actually having to customize the tool.

Our EMS is a Client Server based Java application (use Java Swing) to manage optical networking elements and networks. We need a tool which will identify JTGObjects like Nodes, Shelfs, Slots, Ports etc.

Any pointers in this regard would be helpful.

Thanks,

Ranjitha.

ranjitha at 2007-7-5 23:46:36 > top of Java-index,Desktop,Core GUI APIs...