Log in to follow, share, and participate in this community.
Thread rich:fileUpload (JSFUNIT-190 progress?)
rich:fileUpload (JSFUNIT-190 progress?)Hey Stan, Out of curiosity have you made any progress on testing rich:fileUpload components yet? I went to write a test (which failed) only to find out you had written one almost exactly the same (which you c...
Getting Started Doco - issuesI have been meaning to write something about the doco located http://www.jboss.org/jsfunit/gettingstarted.html The list of libraries given do not seem to actually be compatable. The version of cactus t...
Parameterizing JSFUnit TestsSome developers find the need to pass parameters to the test environment. Since JSFUnit is running "in-container", this can be a bit of a challenge. With JSFUnit running on top of Cactus, the suggestions...
JSFUnitPerformanceAnalysisIntroduction JSFUnit provides a JSFTimer class that tracks the time spent in each phase of the JSF lifecycle. It also allows you to see the total lifecycle time. The JSFTimer remains accurate, even when JS...
Testing a4j with JSFUnit I have 2 selectOneMenu. the second one becomes acrtive and gets <option>s after user select any option from first one. the fulfillment of options is being done by a4j. here is the code: <h:s...
Testing https pages with JSFUnitHi. whenever I try to test any "https" page i face an error. i have xml file that defines which pages should be in https scheme. once i turn it to http the problem is solved. a part of the xml file : <page ...
old page in jsfClientSessionHi, when running a jsfUnit testsuite we are occasionally facing the problem, that some ComponentIDs aren't found in jsfClientSession when trying to set some value or click a button. After some debuggin...
Incompatibility among related classes?Dear colleagues, please help me with this problem: I had already put a small JSFUnit test to work, following the instructions in http://labs.jboss.com/jsfunit/gettingstarted.html. I did it in the middle of July/2010, ...
Testing backing beansHi all! We want to test our backing beans "directly", without calling it through a JSF page. Is that possible? I haven't found any tutorial about this case. Perhaps someone has an example. ...
Debugging embedded server interactionI am using Arquillian 1.0.0.Alpha4 with Tomcat embedded 6 and JSFUnit 1.3.0.Final. Arquillian deploys my application to the embedded container, my application starts up and it gets to the test case wher...
Using JSFUnit's RequestListenerSpying on HtmlUnit The JSFUnit JSFClientSession is a wrapper for HtmlUnit. The nice thing about HtmlUnit is that it is a true headless browser and it takes care of a lot of things automatically such as handling ...
JSFUnit and Spring-Security problemHello, we have a JSF web app using spring security for authentication. We wrote a JSFUnit test for testing the authentication. Following the (pretty good) documentation on the website the test looks like:
WebClie...
java.lang.IllegalStateException: FacesContext already releasHi All, I am getting the above exception when I try to execute the following Test Case JSFClientSession client = new JSFClientSession("/faces/logon.jsp"); client.setParameter("userID", "SimMan"); client.setParamet...
Thread Websphere 6.0 : FacesContextBridge.getCurrentInstance() rais
Websphere 6.0 : FacesContextBridge.getCurrentInstance() raisWe currently still work with the jtidy-4aug2000r7-dev_fixed version, as the newer version brought troubles with it (nosuchmethod exceptions). In Websphere there was an exception raised due to mismatch of saxparseexce...
500 Internal Server ErrorHallo Stan, i have followed zour advice and tried to start the test from the brawser, but when i run it i get this error 500 Internal Server Error for http://localhost:8585/Working_with_J...
JSFUnit with Apache Myfaces OrchestraOver the last few days, I have tried to use JSFUnit to test a Orchestra-based web application. It worked fine when I tested pages which only used Conversation Manual Scope Bean. However, things went wrong when I teste...
UsingComponentIDsAssigning Component ID's The first thing to know about writing a JSFUnit test is that you should get into the habit of assigning component ID's to your components on a JSF page. For every JSF component (except &...
Thread Not a valid response [302 Moved Temporarily]
Not a valid response [302 Moved Temporarily]I am getting the above error when running my JSFUnit test. My application does indeed send a redirect. Can I get the client to follow it?