jWebUnit |
|||||
Home Installation Quick Start Javadoc Project Page Download HttpUnit Junit |
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 HttpUnit and JUnit to create acceptance tests. 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 utilizes HttpUnit behind the scenes. The simple navigation methods and ready-to-use assertions allow for more rapid test creation than using only JUnit and HttpUnit.The following sample testcases illustrate the conciseness of jWebUnit versus HttpUnit and JUnit alone. The tests perform a google search for the HttpUnit home page, navigate to that page from Google, and validate that there is a link to the user manual on the HttpUnit home page. The code in the first column is pure HttpUnit / JUnit, while the second column uses the jWebUnit framework.
|
||||
Hosted by: |