Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacement for JWebUnit / HttpUnit [closed]

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.

like image 446
Paul Croarkin Avatar asked Oct 15 '25 14:10

Paul Croarkin


2 Answers

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

like image 121
anjanb Avatar answered Oct 18 '25 15:10

anjanb


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.

like image 21
Jeffrey Fredrick Avatar answered Oct 18 '25 13:10

Jeffrey Fredrick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!