May 21st 5:00 for 5:15 - 6:30pm 2008 — Subject: Web App Functional Testing with HtmlUnit and Java Scripting
A web application for configuring the processing rules for 0800 telephone calls is introduced and demonstrated.
An API used to abstract that web app. at the functional level is shown.
HtmlUnit is introduced. HtmlUnit is a "browser for Java programs", or "Headless Browser". It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc... just like you do in your "normal" browser.
An implementation of the functional API using HtmlUnit is discussed.
"Scripting for the Java Platform" (JSR 223) (in java SE6) is introduced.
A framework utilising javax.scripting and built on top of the Functional API implementation is shown.
This stack allows functional test scripts to be written in javascript.
The WOW points of javax.scripting, and the OW (pain) points is discussed.
The possible implications of automating functional tests at this level is discussed.
Speaker
Bruce Chapman
Bruce Chapman has been programming with Java since 1998 and is a member of the JSR-269 (Pluggable Annotation Processing API) expert group.
Venue
NEC
6th Floor,
NEC House,
cnr Taranaki and Manners Sts
Wellington