The normal way to access web sites is via a browser; however, there are times when it is desirable to bypass the browser and access a site from a program, including:
A companion framework, ServletUnit is included in the download.
HttpUnit is a free, open source Java API for accessing web sites without a browser, and is ideally suited for automated unit testing of web sites when combined with a Java unit test framework such as JUnit. It was designed and implemented by Russell Gold.
A rudimentary User's manual is available, as are a tutorial, a FAQ and the javadoc. Several working example files come with the distribution download.
In addition, Wiley press has published Java Tools for Extreme Programming: Mastering Open Source Tools, including Ant, JUnit, and Cactus which contains two chapters dealing with HttpUnit.
Releases of HttpUnit are available from the project download page.
Other builds are available from the pre-release directory.
:pserver:anonymous@cvs.httpunit.sourceforge.net:/cvsroot/httpunit
.
A Japanese version of this page and the cookbook are available, thanks to Tuyoshi Ushio.