wood burning stoves 2.0*
The moose likes Testing and the fly likes HttpUnit- Installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "HttpUnit- Installation" Watch "HttpUnit- Installation" New topic
Author

HttpUnit- Installation

Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113
Hello !

Have been asked to use HttpUnit to test our web application...I downloaded the src files from the HttpUnit site along with the jars....
But compiling the files was a sticky job.....
Could we not possibly get the entire com.meterware.HttpUnit as well as the other package class files ?
Please help.
regards
Menon


SCJP , SCWCD , SCBCD , SCDJWS
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Where exactly did you download the package? At least for me, the download link at httpunit.sourceforge.net points to the binary distribution.


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

Joined: Jan 14, 2004
Posts: 113
I manage to dowload the zip file that contains only the jars as well as the core java files..
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You don't need any .class files -- the .jar files are everything you need.

In order to use HttpUnit, the only thing you need to do is:
1) download httpunit-x.y.zip
2) unzip the archive somewhere
3) add all the .jar files from the archive into your project's classpath
4) write tests that use the com.meterware.httpunit.* classes

Here's an example HttpUnit test I wrote for a training class I ran some time ago:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpUnit- Installation
 
Similar Threads
automatic web surfing
HttpUnit test problem
Java using httpunit and junit
Single Sign On implementation help
current-element-node property not recognized