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