JSF: AJAX best practices

We have a JSF 2.0 project with heavy use of AJAX (provided by the OpenFaces tag library). Our project is very cool and does a lot of useful things, and we love it. However, there is one thing that disappoints us - our project does not have integration tests. Generally. Of course, these are tests for selenium, but they cover the project only from the point of view of the user. I would like some integration tests to deal with AJAX related logic. But I'm not sure how to achieve this ... The things that capture my mind are JSFUnit and HTTPUnit, but I'm wondering if there is anything better for an AJAX-based JSF project. Anyone have concerns about this? Thanks!

+6
java ajax unit-testing jsf jsf-2
source share
2 answers

You can try FireUnit or FireBugTest. I have not tried any of them, but they can work. I always wanted this feature too.

+1
source share

Have you tried Watir http://wiki.openqa.org/display/WTR/Simple+Ajax+examples

It also has a firefox option. Firewatir

- Kiran.Kumar

0
source share

All Articles