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, one can have different testing engines. Currently, only HtmlUnit plugin is ready. Some work is in progress to use Selenium to execute tests.
As the tests were being written, they were continuously refactored to remove any duplication and other bad smells in the test code. JWebUnit is the final result of these refactorings.
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 the other soon available plugins, no need to rewrite your tests.
What's New in This Release: [ read full changelog ]
· Fixed handling of absolute image path (when src attribute start with a /). Fixes 2970512. Thanks to Todd Owen.
· Updated to slf4j 1.6.1.
· Updated to HtmlUnit 2.8.
· Updated to JUnit 4.8.2.
· Added the ability to change RefreshHandler in HtmlUnitTestingEngine. Fixes 1864365.