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...
There are two ways of achieving it: You can add a meta tag to the generated HTML content indicating that the page must not be indexed b...
Now you can easily post your Blogger post on MSN Spaces without doing any cut-copy-paste. The trick is very simple and anybody can use it in...
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...
I have been assigned to prepare a checklist for my project. So, while compiling a checklist for SQLs, I suggested to use SELECT COUNT(COLUMN...
Funny Software Testing Quotes https://www.linkedin.com/pulse/funny-software-testing-quotes-prashant-pc?trk=api%2Aa129380%2As137781%2A Se...
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...
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...
I have been forwarded some study material on Core Java related stuff from The Training Group in my Organization to prepare for a forthcoming...
Received the pic in an email :)