Solved

unit testing a webapplication using cactus

Posted on 2004-10-20
5
312 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
[X]
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
5 Comments
 
LVL 9

Expert Comment

by:ronan_40060
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  www.junit.org

Regards
Ronan
0
 
LVL 9

Expert Comment

by:ronan_40060
ID: 12368236
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
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

http://strutstestcase.sourceforge.net/
0
 

Author Comment

by:anilyitta
ID: 12375004
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
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
0

Featured Post

Independent Software Vendors: 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

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

626 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