ANNOUNCE: HtmlUnit 2.0 now supports GWT 1.4.60

36 views
Skip to first unread message

Ahmed Ashour

unread,
Apr 7, 2008, 8:36:42 PM4/7/08
to Google Web Toolkit
Dear all,

It is a pleasure to announce the release of HtmlUnit 2.0, which is the
first version that successfully passes all GWT 1.4.60 samples.

HtmlUnit is an Open Source java browser that simulates Internet
Explorer and Firefox. Not only it parses Html and provides an API to
fill forms or click links, but also supports AJAX and JavaScript, with
remarkable progress in the recent releases.

Main page: http://htmlunit.sf.net
New features: http://asashour.blogspot.com/2008/04/htmlunit-20-is-out.html

Looking forward to getting your feedback,

Ahmed

Carl Scott

unread,
Apr 7, 2008, 10:16:30 PM4/7/08
to Google Web Toolkit
Is there anywhere to see a demo?

Ahmed Ashour

unread,
Apr 8, 2008, 2:55:03 AM4/8/08
to Google Web Toolkit
Well, it is headless browser, intended to by used by your java code.

You can find a good start in http://htmlunit.sourceforge.net/gettingStarted.html.

Hope that helps,

obesga

unread,
Apr 8, 2008, 12:15:12 PM4/8/08
to Google Web Toolkit
Javafox !!

:)

Great Ahmed, thank you for your work

Oskar

Sebastien

unread,
Apr 13, 2008, 2:14:41 AM4/13/08
to Google Web Toolkit
Hi,

Your project seems to be very interesting for testing GWT application
but I do not found any documentation or help about the use of HTMLUnit
with a GWT application. Could you provide tips or advices for starting
tests on a GWT application ?
For example I have some questions :
- To get a widget and therefore to access to its content you seem to
use identifier of the widget. How do you know the widget identifiers ?
Do you specify them into GWT code ?
- Does you framework work with GWT 1.5 ? with GWT-ext 2.x ?

My fear with your project is to write test code depending on how the
GWT compiler builds the html page. For instance if the compiler
changes (new version for instance) the architecture of the html page
could change.
In all case your java approach of web application testing is
interesting. I dream to make working together CLIF (java load injector
from objectweb http://clif.objectweb.org/) and HTMLUnit in order to
have performance test.

Regards,
Seb

On Apr 8, 8:55 am, Ahmed Ashour <a.ash...@gmail.com> wrote:
> Well, it is headless browser, intended to by used by your java code.
>

Ahmed Ashour

unread,
Apr 13, 2008, 2:38:19 AM4/13/08
to Google Web Toolkit
Dear Sebastien,

Please read the general documents of HtmlUnit, they should be enough.
Also you can look into the GWT 1.4 sample tests in
http://htmlunit.svn.sourceforge.net/viewvc/htmlunit/trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/libraries/GWT14Test.java?view=markup
(the tests include starting and closing webserver).

>>> To get a widget and therefore to access to its content you seem to use identifier of the widget. How do you know the widget identifiers ?

You can use HtmlPage.getHtmlElementById() or .getByXPath(), there are
other 'search' methods, but these two are the most common.

> - Does you framework work with GWT 1.5 ? with GWT-ext 2.x ?

With IE simulation, HtmlUnit works with GWT 1.5M1, but not with FF
simulation. It wasn't tested with GWT-ext 2.x

> My fear with your project is to write test code depending on how the
> GWT compiler builds the html page. For instance if the compiler
> changes (new version for instance) the architecture of the html page
> could change.

No, HtmlUnit goal is to simulate real browsers, independent of GWT,
Dojo, Prototype, jQuery or any specific version of them. Even if the
structure changes, and HtmlUnit doesn't work, then it is a bug that
has to be tackled.

Please feel free to contact the team if you have any issue.

Thanks a lot,
Ahmed
Reply all
Reply to author
Forward
0 new messages