开发者

JSF/Java Beans/Richfaces testing solution (JSFUnit, JUnit, etc)

开发者 https://www.devze.com 2023-02-08 03:47 出处:网络
I\'m currently looking into approaches for creating automated unit tests for any new code created in our web based application. We are run开发者_运维问答ning JSF 2.0, Richfaces 3.3 and using JRE1.6.

I'm currently looking into approaches for creating automated unit tests for any new code created in our web based application. We are run开发者_运维问答ning JSF 2.0, Richfaces 3.3 and using JRE1.6.

I'd be interested in hearing opinions on what people have used and would recommend? Advantages/Disadvantages? Difficulty to implement? Community support and documentation? Etc.

I have had a look at JSFUnit and it seems quite compressive, but would like to get opinions before I go ahead and start using it.

Thanks


JSFUnit is indeed the typical approach. I, however, have used Selenium for functional testing, and it worked fine.

The thing is, in many cases the front-end is more easily tested in terms of functional scenarios, rather than units.


I have used SeleniumHQ. Tests are executed in a real Browser which is operated by the test engine. It's funny and little spooky to watch the browser while a test is running.

There is also add-on on top of Selenium which makes it more comftable to write test, called: Selenium Inspector.


For automated web testing, we are using Windmill.

Its great. You record what you want to test in your browser, and windmill will fire up firefox, and run the tests. Its written in python and works for all web pages.

We have integrated Windmill in our continuous integration environment (hudson) so that the tests always run for each commit.

Here is a introduction video to Windmill

And here is a windmill talk on parleys.com

0

精彩评论

暂无评论...
验证码 换一张
取 消