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 are some of the articles I have been going through recently: 16 Open-source Tools Testers Should Be Thankful for This Thanksgivin...
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...
You get all kinds of happiness advice on the internet from people who don't know what they're talking about. Don't trust them. A...
New Payment Bank Licenses are Finally Here. Here's What They Can Do. http://capitalmind.in/2015/08/new-payment-bank-licenses-are-final...
Check out this article I found on Prismatic: "Habits of people who always get promoted" http://prsm.tc/vPS7Oi
"Happiness feels intolerably elusive for many of us. Like fog, you can see it from afar, dense and full of shape. But upon approach,...
I had made my first equity investment in the NFO of Fidelity, way back in 2005. I was looking into the financial products available for sma...
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...
Check out this article I found on Prismatic: "Things you can learn in 10 minutes" http://prsm.tc/20phs6