English 中文(简体)
替代JWebUnit / HttpUnit
原标题:
  • 时间:2008-11-19 00:57:12
  •  标签:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

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.

最佳回答

Canoo的WebTest非常好,可以处理您所寻找的内容。

问题回答

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.





相关问题
热门标签