Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test Framework for Web Applications?

 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am searching for test frameworks for Web Applications and I just found
out that there are many many testing frameworks. The only test framework
I know is "JUnit" and I saw many JUnit extensions for Web Applications on

http://www.junit.org/news/extension/web/index.htm

Could you please recommend me testing frameworks for Web Applications
which are easy to use, widely used and enough references are available?

Thank you in advance for you reply!
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kinds of tests do you want to write?
 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ilja,

I want to write unit test and my application is built with STRUTS,
iBATIS, HIBERNATE, and SPRING frameworks. Basically I wish to test
every unit of the application and realized that it wouldn't be a simple
job only with JUnit.

I just found Cactus and HttpUnit but I still see many other frameworks..
Could you plz give me some advices? Thank you in advance!
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The basic strategy is to make the GUI layer so thin that you don't need to write many tests - put all the logic into POJOs that you can test with plain JUnit.

I don't know Struts very well, though, so I can't recommend on how to do it in that case. If I remember correctly, there is something like a StrutsTestCase class available, but I don't know how to use it.

You would probably benefit from getting a copy of "JUnit Recipes" and/or "JUnit in Action" - both books contain a lot of good advice for testing web applications.
 
pradeepj kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sang-Wook Kim,
You can use "JwebUnit" for testing web application
 
Michael Duffy
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
The basic strategy is to make the GUI layer so thin that you don't need to write many tests - put all the logic into POJOs that you can test with plain JUnit.

I don't know Struts very well, though, so I can't recommend on how to do it in that case. If I remember correctly, there is something like a StrutsTestCase class available, but I don't know how to use it.

You would probably benefit from getting a copy of "JUnit Recipes" and/or "JUnit in Action" - both books contain a lot of good advice for testing web applications.


What about Selenium from ThoughtWorks?
Selenium - ThoughtWorks Web testing
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic