Solved

unit testing a webapplication using cactus

Posted on 2004-10-20
5
303 Views
Last Modified: 2008-02-01
I am trying to do unit testing for a webapplication using cactus. The information which I got from the site was not enuff for me :(   Can anyone suggest me how to start with or post the sample code for a webpage!! SAMPLE CODE FOR A WEBPAGE PLZZ
0
Comment
Question by:anilyitta
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:ronan_40060
Comment Utility
hello Anilyitta
Why dont you use JUnit for testing your Web Applications
JUnit is an open source Java testing framework used to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

JUnit features include:
Assertions for testing expected results
Test fixtures for sharing common test data
Test suites for easily organizing and running tests
Graphical and textual test runners

Check out  www.junit.org

Regards
Ronan
0
 
LVL 9

Expert Comment

by:ronan_40060
Comment Utility
For Cactus

Please go through the Tutorial available at
 http://jakarta.apache.org/cactus/integration/howto_tomcat.html
http://jakarta.apache.org/cactus/integration/howto_tomcat.html   *** Cactus Tomcat integration
http://jakarta.apache.org/cactus/integration/index.html  ***using Cactus Module ***
0
 
LVL 8

Expert Comment

by:kiranhk
Comment Utility
>>Why dont you use JUnit for testing your Web Applications
JUnit cannot be used for testing web applications. it cannot provide the Web container environment.
so Cactus is the best option and if u have struts in your presentation layer then u can test using Struts Test Case which is a subset of JUnit

http://strutstestcase.sourceforge.net/
0
 

Author Comment

by:anilyitta
Comment Utility
I have struts in my application. So can I use both Strutstestcase and cactus?
0
 
LVL 8

Accepted Solution

by:
kiranhk earned 500 total points
Comment Utility
if u r having struts then Struts Test Case is built on JUnit and Cactus.
so u can download Struts Test case and use it. no need to have Cactus seperately
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now