5

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

Thomas Buckley
  • 5,836
  • 19
  • 62
  • 110

3 Answers3

0

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.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
0

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.

uı6ʎɹnɯ ꞁəıuɐp
  • 3,431
  • 3
  • 40
  • 49
0

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

Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
  • Haven't heard about this before. Do you also have Selenium experience? If so, how is Windmill better/different? – BalusC Feb 04 '11 at 14:55
  • No I have no Selenium experience, but I have head or it. We are using it heavily, and it very easy to use. It supports JQuery, so you can easily program events and modify the tests for your page. There is also a Windmill talk from parleys.com. Check it out – Shervin Asgari Feb 04 '11 at 14:57