Does JSFUnit test all aspects of a web application?

541 Views Asked by At

I'm a testing noob and I need to test a JSF application. So I only just started exploring JSFUnit (read: I've googled it and StackOverflow-ed it), which as I understand uses/extends JUnit, HTMLUnit, HTTPUnit and other units that I have no idea about.

  • The thing is, the app uses Hibernate and what I want to know is whether or not I can use JSFUnit to create comprehensive tests that encompass model, view and controller, not to mention all that the HTTPUnit supposedly does?

  • Also, if I'm using Primefaces Dialog Framework so that my dialogs are not in the same page that opens said dialog, would I be able to test this approach? Or would it be better, in terms of testing, if my dialog was on the same page?

I hope my questions make sense. I promise they made sense in my head. Any help in this regard would be highly appreciated.

1

There are 1 best solutions below

3
On

It seems that you require something more complex than pure unit tests.

Take a look at Selenium framework, as it simulates user interaction through a real recorded use case, and is easy to work with.