Solved

unit testing a webapplication using cactus

Posted on 2004-10-20
5
308 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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