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...
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...
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...
Agile vs Waterfall vs Iterative vs Lean Software Development - In Pictures! : " Tara Whitaker has produced an excellent diagram to dep...
JSP Model 1, Model 2 Architectures and MVC Pattern The early JSP specifications presented two approaches for building web applications usi...
Happiness is a way of Travel, not a Destination! From Gatekeeper Follow my daily antics, links, tips and more @rajneeshgarg on Twitt...
Funny Software Testing Quotes https://www.linkedin.com/pulse/funny-software-testing-quotes-prashant-pc?trk=api%2Aa129380%2As137781%2A Se...
Here are some of the articles I have been going through recently: 16 Open-source Tools Testers Should Be Thankful for This Thanksgivin...
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...
Top 20 replies by Programmers to Testers when their programs don't work: 20. "That's weird..." 19. "It's never ...