How to write Unit testing for JSF

Posted on 2009-07-14
Medium Priority
Last Modified: 2013-12-13
I have a simple JSF Login page which hits the database and compare with the user inputs and send's to appropriate page showing Success/Failure, How to write a Unit test for this Application.
Using Netbeans6.5, Tomcat 6.0,

Would like to prefer Junit.
Any sample code or a link which will show the configuration in Netbeans would be great.

Question by:anil7734
1 Comment
LVL 20

Accepted Solution

a_b earned 2000 total points
ID: 24851793
Since you need to test a webpage you might be better off writing test cases in httpunit. You can automate clicks and data entry through that. Junit is only useful if you want to do unit test at the code level.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In today’s time where quality is an essential factor all over the world, software testing and effective QA (Quality Assurance) is an all-important element for any business to ensure less risk for an end product. A good software testing company deliv…
Nuance's PaperPort may display this error message: PaperPort appears to be running Windows XP Compatibility Mode which may result in errors. We recommend disabling Compatibility Mode for the PaprPort.exe program, see Technote 6629. This articl…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question