Welcome

You are on the jWebUnit 2.x website. This is the "devel" version of jWebUnit. You can also consult jWebUnit 1.x website.

What is jWebUnit?

jWebUnit is a Java framework that facilitates creation of acceptance tests for web applications. It evolved from a project where we were using JUnit to create acceptance tests. Also, we have different testing engines: HtmlUnit and Selenium. As the tests were being written, they were continuously refactored to remove duplication and other bad smells in the test code. jWebUnit is the result of these refactorings.

What does jWebUnit provide?

jWebUnit provides a high-level API for navigating a web application combined with a set of assertions to verify the application's correctness. This includes navigation via links, form entry and submission, validation of table contents, and other typical business web application features. This code try to stay independent of the libraries behind the scenes. The simple navigation methods and ready-to-use assertions allow for more rapid test creation than using only JUnit and HtmlUnit. And if you want to switch from HtmlUnit to Selenium, no need to rewrite your tests.

JWebUnit architecture