Java Virtal

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »


[ Archives News
for 'Java Technology' ]

home > news > java technology > testing jsf

Testing JSF

It#039;s been a while since I#039;ve blogged last (ok, it#039;s been a year), but I recently came across a question that I have a little insight into, and I thought I#039;d tackle it briefly. The question was simple:  How do I test my JSF application? I#039;ve used two different test frameworks to do so, and besides being two of the most popular, they also offer a good example of the two different patterns used for Web testing.  The two programs are HTMLUnit and Selenium.  (Please note, there are certainly others -  FacesTester, and JSFUnit (which actually uses/extends HTMLUnit),  to name just two - but I#039;m going to stick to the two that I#039;ve used.) HTMLUnit is a framework which uses browser simulation to test web pages - this means that no browser is launched, which also means that you can do things like test IE7 on Linux without a copy of Windows, as well as running testing in headless mode, meaning that you don#039;t even need a windowing system to be running (which is handy, and also very efficient for performance).  There are downsides to this, of course - for one, it#039;s possible that the simulation may not be perfect (though I#039;ve never found a case where it wasn#039;t).  The other disadvantage is that you can#039;t actually see what#039;s going on during testing, which can be awkward when figuring out why your test failed.    HTMLUnit supports emulating FF2, FF3, FF3.6, IE6, IE7, and IE8. Selenium, o...

Date: January, 22 2011

Others News

© web editor | bootstrap dropdown menu | bootstrap navigation menu | bootstrap popup | css menu maker