Re: HtmlUnit



On Wed, 12 Oct 2005, kalensr wrote:

> Greetings:
>
> Recently I have been working with Junit and HttpUnit. I have
> successfully implemented a suite of tests and I am pleased with the
> results.

I recently looked at jwebunit. It wraps httpunit/rhino/junit together and
adds a lot of syntactic sugar. It looked really good except I found it
limited and needed to drop down to using rhino and httpunit.

> However, in my R&D I came across HtmlUnit
> http://htmlunit.sourceforge.net/ and I am very interested in moving
> forward with this API.

Someone else at my site suggested htmlunit. It was more current and
supports more than jwebunit (httpunit/rhino) so we are evaluating it right
now.

> I have found very few examples and no user groups that discuss the
> usage of HtmlUnit.

I did a google for htmlunit and found quite a few articles. From that I
was able to gleen enough information to use it. Additionally, the methods
are different from httpunit but the general framework is the same.

You might want to check on www.theserverside.com and see if you can find
or start discussions about it there. Additionally, the Yahoo junit group
occasionally has people discussing htmlunit.

> I am looking for someone who has experience writing tests with HtmlUnit
> or someone who can direct me to other resources. I have come across a
> few road blocks early on in my exploration of HtmlUnit.

If you want to post questions I'd guess there are people here who might be
able to answer them.

--
Send e-mail to: darrell dot grainger at utoronto dot ca

.



Relevant Pages

  • Re: HtmlUnit
    ... in my R&D I came across HtmlUnit ... Samie, Pamie, Watir, JSUnit, Selenium, and HttpUnit are its competition, ... HtmlUnit, IIRC, only reads HTML. ... It mocks a web browser, ...
    (comp.software.testing)
  • HtmlUnit - handling client side redirect
    ... Below I have posted some examples of both successfully handling client ... Client side redirect indicated by: ... Handled in HttpUnit like such: ... Attempting to perform same actions in HtmlUnit: ...
    (comp.software.testing)
  • HtmlUnit (or HttpUnit) - Javascript and iFrames
    ... I am wondering if anyone has experience working with js and iframes in ... httpunit or htmlunit? ... The application I am working with has multiple iframes that get loaded ... I am wondering how difficult it is to do simple js calls from httpUnit ...
    (comp.software.testing)
  • HtmlUnit
    ... Recently I have been working with Junit and HttpUnit. ... successfully implemented a suite of tests and I am pleased with the ... in my R&D I came across HtmlUnit ...
    (comp.software.testing)
  • Re: Unittesting for web applications
    ... Httpunit and Htmlunit, ... of variants. ... > unittests for web applications? ...
    (comp.lang.python)