Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Active Tab2009
 
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-On Labs

HtmlUnit: An Efficient Approach to Testing Web Applications
TS-4238


Presenter: Ahmed Ashour, Zain KSA; Daniel Gredler, DHL Global Mail


Top-to-bottom integration testing is a critical step in ensuring Web application quality. HtmlUnit is an open-source Java technology-based headless browser that provides an efficient means of automating these integration tests. Unlike most other tools in this area, HtmlUnit simulates a browser rather than driving a "real" browser and is capable of emulating the behavior of Firefox or Microsoft Internet Explorer for a very large number of Web applications: from simple old-fashioned pre-Ajax applications all the way to complex Web 2.0 apps.

HtmlUnit's approach provides obvious benefits in areas such as ease of deployment, performance, scalability, and Ajax testing but also has some limitations. In this session, project committers Daniel Gredler and Ahmed Ashour provide a detailed overview of the library; explain how to get the most out of the HtmlUnit approach; and show why, in many cases, it is far more efficient than working with a "real" browser to ensure the quality of your Web apps.

The session is for Java technology developers who need to write top-to-bottom integration tests for their Web applications.

Attendees will learn about

  • The two approaches to Web app integration testing: browser simulation and browser driving
  • The cons of the browser simulation approach
  • The pros of the browser simulation approach
  • Key extension points provided by HtmlUnit
  • Wrappers that enable you to hedge your bets and switch between the two approaches
 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.