November 30, 2012 at 11:15 am (HtmlUnit, WebDriver)
A WebDriver user has recently posted interesting execution times for his test suite in HtmlUnit’s mailing list depending on the driven browser.
Here are his results for his 600 tests:
- 2 hours: Sauce Labs
- 40 minutes: Chrome
- 10 minutes: HTMLUnit
- 4 minutes: HTMLUnit + surefire plugin parallel execution
The complete email can be read here.
Of course this doesn’t mean at all that the HtmlUnitDriver is always faster than the “real” browsers. There are many cases where HtmlUnit is too slow, no discussion. Additionally more information would be interesting here to correctly interpret the execution times like the results when driving Firefox and the kind of browser simulated with HtmlUnit. Nevertheless such results are always encouraging for HtmlUnit’s developer.
August 5, 2010 at 9:24 am (HtmlUnit, Test Automation)
Nearly 6 months after release 2.7, HtmlUnit-2.8 is finally ready.
This release comes later as originally planned as we wanted to avoid as most as possible any side effect of the large internal changes. I’m now quite confident that we have reached a really good status.
Here is an extract of the change log:
- single thread for background JS execution
- migration to HttpClient 4
- initial support for FF3.6 simulation
- support for SOCKS proxy
- initial support for Google AppEngine
- support for large (binary) download
The support for Google AppEngine which is based on contributions from Google’s GWT team is exciting as it will open the door to new usage of HtmlUnit.
The number of HtmlUnit users continuously grows and, as the consequence, so does the number of reported issues and feature wishes. We will try to address it in next release.
April 21, 2009 at 10:37 am (HtmlUnit, NekoHTML)
The HtmlUnit team is pleased to announce the release of HtmlUnit 2.5. This release brings another round of improvements and bug fixes.
Here is an extract of the change log:
March 2, 2009 at 10:11 am (HtmlUnit)
Great news: the proposal of HtmlUnit committers Daniel Gredler and Ahmed Ashour for the next JavaOne conference has been accepted!
They will present ” HtmlUnit: An Efficient Approach to Testing Web Applications ” at the biggest Java conference in San Francisco (May 31 – June 05).
This is an additional very good sign for the constantly growing recognition of HtmlUnit and I hope that it will be the occasion for them to meet a lot of HtmlUnit users.
January 9, 2009 at 10:07 am (HtmlUnit)
Tags: Apache Foundation, HtmlUnit
Should HtmlUnit move to Apache Foundation? (the first step would be to make a proposal for the Apache Incubator)
Nothing is decided, we’re just thinking loud and are interested to hear what our users think of this idea. I’ve started the discussion in HtmlUnit user mailing list but comments are welcome here too.
January 9, 2009 at 9:56 am (HtmlUnit)
Tags: HtmlUnit, TheServerSide Symposium
I will present “HtmlUnit: An Efficient Approach to Testing Web Applications” together with Daniel Gredler at TheServerSide Java Symposium in Las Vegas (March, 18).
This will be funny because I work together with Daniel in the HtmlUnit project since a few years and I’ve never met him until now.
I think that this will be a great occasion to show HtmlUnit’s potential and I hope that we will meet a lot of HtmlUnit users.
Thanks to Tools & Techniques chair Frank Cohen for inviting us.
December 30, 2008 at 1:42 pm (HtmlUnit, NekoHTML)
The HtmlUnit project is pleased to announce the availability of the HtmlUnit 2.4 release.
This release brings another round of improvements and bug fixes. This should have been a Christmas relase but a regression found in NekoHtml-1.10 forced us to wait a bit.
Here is an extract of the change log:
- improved JS support, particularly full support for the AJAX libraries JQuery and MochiKit
- possibility to use real ActiveX objects (on windows only)
- minimal applet support
- support for IE conditional comments
December 3, 2008 at 8:14 am (HtmlUnit, Test Automation)
Tags: HtmlUnit, MochiKit
The library’s own tests are integrated in HtmlUnit’s build and they now all (2) pass, no matter if we simulate Firefox 2, Firefox 3, Internet Explorer 6 or Internet Explorer 7. This time, it was not so complicated to reach 100% support: fix a bug in Rhino, implement a dummy support for the filters property on HTML elements when simulating IE, handle detached nodes for offsetParent, and fix a few things in computing CSS properties.
I believe that we’re on the right way and that we’ll soon be able to announce full support for other well known libraries.
(1) I suppose here that the library’s own tests are representative for the library usage.
(2) In fact we run only the tests files that pass in a “real” browser and therefore have to ignore 3 files.
September 26, 2008 at 12:29 pm (HtmlUnit)
Tags: HtmlUnit 2.3
The HtmlUnit project is pleased to announce the release of HtmlUnit 2.3. This release brings another round of improvements and bug fixes (the release process has taken an unusual long time due to problems caused by SourceForge datacenter migration).
Here is an extract of the complete change log:
- better generics support to avoid casting
- improved JS support, particularly full support for GWT 1.5
- Firefox 3 now in the list of the simulated browsers
- a CookieManager
The generics improvements may require some simple code changes if you are using Sun Java 5 compiler due to a bug which has been fixed in Sun Java 6 compiler but not been back ported.
September 10, 2008 at 12:26 pm (HtmlUnit, WebTest)
Tags: Google JS error, HtmlUnit, WebTest
Like many other testing tools, WebTest uses Google‘s website for simple code examples. It has the advantage to be a well known website, pretty fast and with simple code.
For some time WebTest users started to report that even simple examples from the demo tests available when creating a new project failed due to JS errors like this:
As this test used to work, this means that Google’s start page isn’t so simple any more that it used to be. It was predictable that this page would change one day but it is quite embarrassing as we use this kind of tests to show how easy and powerful WebTest is even for sites using a lot of JS stuff.
HtmlUnit‘s JS support is quite good (and improved continuously), but of course not (yet ) as good as the one of “real” browsers, therefore I’ve started to search for the cause of the problem in HtmlUnit, looking for missing/incorrect implementation of some JS functionalities. At the end I’ve found that the problem occurred only when setting directly the value attribute of the field rather than calling the
type(...) method on it because
keypress handlers were being used. This means that WebTest should probably use
type(...) rather than setting the field’s value directly.
But this means as well that Google’s home page relies on the
- - go to http://www.google.com/ncr (to be sure to have the English version of the page)
- - right mouse click in the search field to paste some value to search for
- - click the “I’m Feeling Lucky” button
The results are quite similar to the JS error obtained by WebTest, no matter if you use Firefox or Internet Explorer (perhaps does it work correctly with Chrome ):
Rather painful for Google than for WebTest!
OK, this error is nothing dramatical but for an Internet giant like Google that has plenty of talented engineers (and …, and…, and …. You perhaps know better than I what the web means for Google), I find quite painful to have such an error on its main page!
The error scenario is not particularly complicated and such a case should surely be covered by automated tests. Perhaps is it a question of inadequate tools? Google seems to use intensively Selenium .
Concerning WebTest, I’ll start the discussion on the mailing list to decide what is the best way to follow: setting directly the field value, typing it, or having both possibilities.