I wanna thank you guys, for this great help. This stress test is absolutely needed on my application.
And let me ask one more thing.. Seeing this line on Greg`s wiki page: <input type="hidden" name="javax\.faces\.ViewState" id="javax\.faces\.ViewState" value="(.+?)" /> I didnt found the pattern "javax\.faces\.ViewState" on my rendered code. Instead of this, i found "jsf_state_64" . What version and implementation of JSF are you guys using? Thanks again. On 7/24/07, Greg Reddin <[EMAIL PROTECTED]> wrote:
The wiki page I just created essentially says what Bernhard said. http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter Hopefully, others with more knowledge on the inner-workings of JSF can add to/correct the content. Thanks, Greg On 7/24/07, Bernhard Huemer <[EMAIL PROTECTED]> wrote: > Hello, > > I would recommend you to use JMeter's proxy [1] to record your test > cases. In doing so, JMeter can record your actions while you browse your > web application with your normal browser [2]. > > Additionally, if you're using client-side state-saving you have to > configure an XPath Extractor with the following query: > //[EMAIL PROTECTED]'javax.faces.ViewState ']/@value > (Moreover I had to use tidy). > > Choose a reference name (e.g. "state") and ensure that the following > HTTP Request sends this parameter. That is, go through your recorded > test cases and send a " javax.faces.ViewState" parameter with the value > ${state}. The expression depends on the reference name you've chosen. > > Furthermore, go through your recorded test cases and ensure that JMeter > encodes the " javax.faces.ViewState" parameter. It is just a little > checkbox, but I spent a couple of hours finding this. Otherwise MyFaces > can't restore the state because of a javax.crypto.BadPaddingException or > a java.io.StreamCorruptedException . > > greets, > Bernhard Huemer > > [1]: > http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf > [2]: > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Proxy_Server > > Am Dienstag, den 24.07.2007 , 15:03 -0300 schrieb Alixandre Santana: > > Hi guys, > > > > Could someone show me how configure a test plan in JMeter in order to > > test a JSF > > application ? > > > > Actually, which parameters do I have to put in the request in order to > > execute a particular method of a JSF bean ? > > > > I want to simulate such execution and just to call the page.jsf with > > the request parameters is not enough. > > > > Thanks in advance > >
-- Alixandre Santana
