File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes On unit testing for GUI (supporting SWT ) and web page testing frameworks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "On unit testing for GUI (supporting SWT ) and web page testing frameworks " Watch "On unit testing for GUI (supporting SWT ) and web page testing frameworks " New topic
Author

On unit testing for GUI (supporting SWT ) and web page testing frameworks

christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
Hi, I have been researching (for too long now, i think) about GUI testing frameworks. My task is to try and evaluate their pros and cons for our project. Of course, I've seen some already but most of them are for SWING/AWT applications. I wonder if these testing tools can test for SWT built applications too (I've seen jfcUnit, abbot and costello, junit too [but does junit test GUIs?]) or if not, do you have any suggestions of frameworks i could research on? I've also come across Eclipse TPTP, which i think is just new but can be used for the same purpose too. can you comment on this one? thank you thank you very much.

also, i also have to check on various automated web page testing tools. I've already seen htmlunit,httpunit,twill,canoo and selenium (i saw this list from one of the posts in this forum) - however i would like to ask if these testing frameworks support the SWT browser widget. How would i know if they do? and what are SWT browser widgets, is it just the same widgets i use in my developments? Do you have any other webpage testing frameworks to suggest?

thank you thank you very much. Any help would be greatly appreciated. I'm really very new in software testing (it was all program,program... for me before) that is why I'm still in the research mode. again, thank you very much.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
What kind of testing do you want to do (unit testing, functional testing...)?

Who will write the tests?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
A couple of suggestions are mentioned in this thread.


Ping & DNS - my free Android networking tools app
christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
hi, it's for unit testing. i also checked out the site mentioned but i can't seem to find nyx in the website. are there any other alternatives? tnx very much for your help.
christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
sorry, for the multiple reply, but as for who will do the testing, it will be me/the programmer. thanks. um, is this the answer you were looking for or did i misunderstood the question. thanks.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Mhh, I'm quite sure that the Eclipse teams use JUnit for unit testing, and there even seems to be an SwtTestcase class. Surprisingly, I didn't find any documentation for it using google.

For web page testing, I'd use either HtmlUnit or JWebUnit (both extensions to JUnit, too).

The most important thing, though, is to keep the GUI as thin as possible, so that you don't need to test it very much. Google for the "humble dialog" article by Micheal Feathers...
christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
thank you very much! will try to do that. I need to make comparative analysis to be submitted today - i hope i get to compare very well and choose the right one for the project! thanks very much.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
JUnit really is the de facto standard for Java unit testing. You won't find a tool that has better support or more extensions for all kinds of things.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: On unit testing for GUI (supporting SWT ) and web page testing frameworks