From Free Software Directory
This is the approved revision of this page; it is not the most recent. View the most recent revision.
Jump to: navigation, search



Unit test your websites with code that acts like a web browser.

Webunit is a framework for unit testing websites:

  • Browser-like page fetching including fetching the images and stylesheets needed for a page and following redirects
  • Cookies stored and trackable (all automatically handled)
  • HTTP, HTTPS, GET, POST, basic auth all handled, control over expected status codes, ...
  • DOM parsing of pages to retrieve and analyse structure, including simple form re-posting
  • Two-line page-fetch followed by form-submit possible, with error checking
  • Ability to register error page content across multiple tests
  • Uses python's standard unittest module as the underlying framework
  • May also be used to regression-test sites, or ensure their ongoing operation once in production (testing login processes work, etc.)



version 1.3.9 (stable)
released on 26 March 2007

User level




LicenseVerified byVerified onNotes
License:ExpatKelly Hopkins14 January 2010

Leaders and contributors

Richard Jones Maintainer

Resources and communication

AudienceResource typeURI
Python (Ref)https://pypi.org/project/webunit

Software prerequisites

This entry (in part or in whole) was last reviewed on 3 April 2018.


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.