HtmlUnit is a java unit testing framework for testing web based applications. It is similar in concept to httpunit but is very different in implementation. Which one is better for you depends on how you like to write your tests.
HttpUnit models the http protocol so you deal with request and response objects. HtmlUnit on the other hand, models the returned document so that you deal with pages and forms and tables.
HtmlUnit is not a generic unit testing framework. It is specifically a way to simulate a browser for testing purposes and is intended to be used within another testing framework such as JUnit.
Support for the HTTP and HTTPS protocols. ( JSSE must be in your classpath in order to use HTTPS support)
Support for cookies
Ability to specify whether failing responses from the server should throw exceptions or should be returned as pages of the appropriate type (based on content type)
Support for submit methods POST and GET
Ability to customize the request headers being sent to the server
Support for html responses
o Wrapper for html pages that provides easy access to all information contained inside them
o Support for submitting forms
o Support for clicking links
o Support for walking the DOM model of the html document
Proxy server support
Support for basic authentication
Wednesday, December 6, 2006
Popular Posts (Last 30 days)
Bugzilla is the Bugs/Issues Tracking Tool from The Mozilla Organization. Version 2.18 is the latest stable release. There are couple of res...
Here is the list of Online Hindi Radio Stations. Copy the URL in your media player and enjoy !! 106.2 HUMFM - UAE ==> http://www.humfm...
JSP Model 1, Model 2 Architectures and MVC Pattern The early JSP specifications presented two approaches for building web applications usi...
Mark the location of the first character of the block of text you want to copy by pressing mx This marks the begining of the text to be copi...
Agile vs Waterfall vs Iterative vs Lean Software Development - In Pictures! : " Tara Whitaker has produced an excellent diagram to dep...
A Product Owner compiles all the changes planned for the product and prioritizes the possible functionalities. Sprint is A 1-6 week period...
Received the pic in an email :)
I am trying to install on a Linux machine (Fedora). Facing a couple of issues(I, being a Windows guy, was to face those issues :(... Anyw...
Client does not support authentication protocol requested by server; consider upgrading MySQL clientRecently I installed MySQL 4.1 on my W2K machine and tried to connect to it. But could not. It threw the error Client does not support authe...