| 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
|
|
|
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
|
|
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:
|
 |
 |
|
|
subject: HttpUnit- Installation
|
|
|