unit testing a webapplication using cactus

Posted on 2004-10-20
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
Question by:anilyitta
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 12368218
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


Expert Comment

ID: 12368236
For Cactus

Please go through the Tutorial available at   *** Cactus Tomcat integration  ***using Cactus Module ***

Expert Comment

ID: 12371753
>>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

Author Comment

ID: 12375004
I have struts in my application. So can I use both Strutstestcase and cactus?

Accepted Solution

kiranhk earned 500 total points
ID: 12375361
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stuck in Bootstrap WysiHtml Editor 3 45
java cyclic graphs 15 224
How to return JSON response to ajax call in strut2 action class with SUCCESS result 2 240
countXY challenge 28 179
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

759 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