HttpUnit

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:

  • automated web site testing
  • using a web-site as part of a distributed application HttpUnit makes this easy. Written in Java, HttpUnit emulates the relevant portions of browser behavior, including form submission, basic http authentication, cookies and automatic page redirection, and allows Java test code to examine returned pages as text, an XML DOM, or containers of forms, tables, and links.

    What is it?

    HttpUnit is a 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.

    Documentation

    A rudimentary User's manual is available, as is the javadoc. Several working example files come with the distribution download.

    Where do I get releases?

    The latest release of HttpUnit is available from the HttpUnit home page .

    How do I contribute, give feedback, fix bugs and so on?