• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of testing do you want to do (unit testing, functional testing...)?

Who will write the tests?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of suggestions are mentioned in this thread.
 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic