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...
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...
New meaning to the names of a few IT companies: No hard feelings. Just a positively humorous attempt! AT&T : All Troubles & Terribl...
Agile vs Waterfall vs Iterative vs Lean Software Development - In Pictures! : " Tara Whitaker has produced an excellent diagram to dep...
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...
Funny Software Testing Quotes https://www.linkedin.com/pulse/funny-software-testing-quotes-prashant-pc?trk=api%2Aa129380%2As137781%2A Se...
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...
A Product Owner compiles all the changes planned for the product and prioritizes the possible functionalities. Sprint is A 1-6 week period...
JSP Model 1, Model 2 Architectures and MVC Pattern The early JSP specifications presented two approaches for building web applications usi...