aspose file tools*
The moose likes Testing and the fly likes BEST Unit testing tool for the webpages(designed using servlets,JSP...) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "BEST Unit testing tool for the webpages(designed using servlets,JSP...)" Watch "BEST Unit testing tool for the webpages(designed using servlets,JSP...)" New topic
Author

BEST Unit testing tool for the webpages(designed using servlets,JSP...)

prathana balaji
Ranch Hand

Joined: Oct 07, 2007
Posts: 30
Hi all,
Can any one please suggest me the best stable unit testing for the webpage

Regards,
Prathana
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you want to unit test JSP pages, you might want to take a look at JspTest.

If you want to unit test Servlets, you might want to look at "mock objects".

If you want to integration test JSP pages and Servlets, you might want to look at tools like Selenium and JWebUnit.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
prathana balaji
Ranch Hand

Joined: Oct 07, 2007
Posts: 30
thanks a lot lassee,
Actually ,My modules contains servlets as well as JSP so is it possible to opt different testing tool for both or we have to use the common tool

Kindly please advice(suggest) me

Regards,
Prathana
prathana balaji
Ranch Hand

Joined: Oct 07, 2007
Posts: 30
Hi lasse,
What is your opinion about Cactus (testing tool).and how far these above mentioned tools by you is different
Please help me by suggesting

Regards,
Prathana
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30919
    
158

Originally posted by prathana balaji:
Actually ,My modules contains servlets as well as JSP so is it possible to opt different testing tool for both or we have to use the common tool

You can use more than one tool. For example, it is common to use JUnit to unit test servlets and a tool like Selenium to integration test the servlet/JSP.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
prathana balaji
Ranch Hand

Joined: Oct 07, 2007
Posts: 30
Hi lasse,

Can you please suggest me a site from where I can learn Jwebunit to write testcase as well as to run it.Actually I don't know anything about Unit testing for webpages.CAn you please guide me by telling a good book or a good site from where I can learn Jwebunit

Regards,
Pavithra
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by prathana balaji:
Can you please suggest me a site from where I can learn Jwebunit to write testcase as well as to run it.

I've only ever used the quickstart documentation and then simply experimented with the API to figure out how to do stuff. And, of course, asking specific questions online about stuff I don't seem to be able to figure out myself.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by prathana balaji:
What is your opinion about Cactus (testing tool).and how far these above mentioned tools by you is different

Cactus could be used for integration testing server-side code such as Servlets and JSPs by deploying the tests (and the code under test) to a web container such as Apache Tomcat or Jetty. This differs from JWebUnit and Selenium, for example, where the tests are running in a separate process and exercise the application under test purely through its external interface.
 
 
subject: BEST Unit testing tool for the webpages(designed using servlets,JSP...)