Recent Posts

RSS Feeds

Canoo Web Test & JSF

Sometime ago I remember a posting about problems in testing JSF apps with Canoo. Well I'm deep in the troughs of a JSF app and I'm doing testing with Canoo and it works like a champ. So not sure if the JavaScript support has improved to the point that it just works now or what but I'm not having any problems. I am using fairly simple things though. I'm about to get into pageable tables from My Faces. I'll post again once I get that running and let you know how it goes.

Some of the docs for Canoo leave a bit to be desired so let me sum up what I've found so far in testing with Canoo

  • The tests are ant build files, simple and obvious once you get it, it took me an hr of looking at the site to figure that out.
  • Modify the log4j.properties file in the lib directory to get rid of the tons of logging messages. This is in the FAQ but I never read FAQ's ;-)
  • Use the entities stuff as suggested in the docs, its good stuff. I'd like to try out ant 1.6's import and see if that works as well.
  • The tests are not as brittle as I thought they would be, pleasant surprise. I just finished with a moderate sized refactoring and updating the tests was straightforward
  • Use Cargo to start/stop the web container, its fantastic.

I'm already behind because of the crash so i should shut up now.

Permalink     2 Comments



Comments:

What version are you using? They've recently started to switch from HttpUnit to HTMLUnit - which (supposedly) has much better JavaScript support.

Posted by Matt Raible on December 01, 2004 at 01:09 PM MST #

hi Matt, I'm using 1.7.

Posted by Bill Dudney on December 01, 2004 at 03:08 PM MST #

Post a Comment:
  • HTML Syntax: Allowed