Question

We've used both JWebUnit and HttpUnit in the past to do functional tests of web applications. Both of them seem to have issues in handling javascript. We are not particularly interested in testing the javascript at this point, but JWebUnit and HttpUnit tests have broken since we added some small Ajax components (Dojo Date / Time pickers for instance) to our pages.

Selenium and Watir do not fit because they essentially drive browsers and we are running these tests from CruiseControl on a box where we are not allowed to install a browser.

Was it helpful?

Solution

Canoo's WebTest is pretty good and can handle what you're looking for.

OTHER TIPS

You want HtmlUnit.

It isn't perfect browser emulation (for that you need a browser driver) but it has significant javascript support. Check out the introduction to testing your JavaScript.

Go with Canoon. Canoon is built upon HtmlUnit, and was previously built upon HttpUnit.

yc

Celerity is a JRuby library for easy and fast automation of web application testing. It is a wrapper around the HtmlUnit Java library and is aimed at providing the same API and functionality as Watir.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top