This content has been marked as final.
Show 2 replies
-
1. Re: New JSFUnit + Richfaces
ssilvert Jun 13, 2008 4:02 PM (in response to bgregory)You don't use RichFacesClient any more.
Start out using the new jsfsession package like this:import org.jboss.jsfunit.jsfsession.*; JSFSession jsfSession = new JSFSession("/index.jsf"); JSFClientSession client = jsfSession.getJSFClientSession(); JSFServerSession server = jsfSession.getJSFServerSession();
The methods you'll use in JSFClientSession are type(), click(), and setValue(). The javascript for the RichFaces components will be executed just as in your browser.
Stan -
2. Re: New JSFUnit + Richfaces
bgregory Jun 13, 2008 4:12 PM (in response to bgregory)Wow. That almost seems TOO easy.
I'm coverting a bunch of tests to the new version - I'll let you know how it goes.
Brian