Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF: AJAX Testing best practices

We have a JSF 2.0 project with heavy use of AJAX (provided by OpenFaces tag library). Our project is very cool and does many useful things, and we love it. However there is one thing about it that frustrates us - our project doesn't have integration tests. At all. It has selenium tests of course, but they cover the project only from user's perspective. What I'd love to have are some integration tests which would deal with AJAX-related logic. But I'm not sure how to achieve this... Things that are capturing my mind are JSFUnit and HTTPUnit, but I wonder if there is something better for AJAX-based JSF project. Does anyone have any concerns about this? Thanks!

like image 428
Denis Kniazhev Avatar asked Feb 18 '11 16:02

Denis Kniazhev


1 Answers

You could try FireUnit or FireBugTest. I haven't tried either of these but they might work. I have always wished for a feature like this too.

like image 176
Timothy Ruhle Avatar answered Oct 14 '22 20:10

Timothy Ruhle