This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HttpUnit- Installation
 
It's not a secret anymore!