• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Test Framework for Web Applications?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sang-Wook Kim,
You can use "JwebUnit" for testing web application
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic