aspose file tools*
The moose likes Testing and the fly likes Test Framework for Web Applications? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Test Framework for Web Applications?" Watch "Test Framework for Web Applications?" New topic
Author

Test Framework for Web Applications?

Sang-Wook Kim
Ranch Hand

Joined: Jan 07, 2004
Posts: 36
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

Joined: Jul 11, 2001
Posts: 14112
What kinds of tests do you want to write?


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
Sang-Wook Kim
Ranch Hand

Joined: Jan 07, 2004
Posts: 36
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

Joined: Jul 11, 2001
Posts: 14112
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

Joined: Feb 09, 2006
Posts: 3
Hi Sang-Wook Kim,
You can use "JwebUnit" for testing web application
Michael Duffy
Ranch Hand

Joined: Oct 15, 2005
Posts: 163
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


%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test Framework for Web Applications?