Question

I'm currently looking into approaches for creating automated unit tests for any new code created in our web based application. We are running 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

Was it helpful?

Solution

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.

OTHER TIPS

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

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