You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Flavio Cysne <fl...@gmail.com> on 2014/03/21 14:18:28 UTC
Re: JMeter and Richfaces FileUpload on Flash mode
Hi,
although the solution below was not tested for Richfaces, neither for
flash mode, it may solve the problem with JSF 2 and FileUpload component
(at least worked for our team).
Issue:
When using JSF 2 and PrimeFaces FileUpload component, JMeter HTTP Request
seem to fail the upload process, although the form is correctly submitted.
Solution:
JSF 2 ViewState sometimes has a minus signal added to its value and this
has to be ignored by the regular expression capturing the ViewState value.
Like this: <input[^>]*name="javax\.faces\.ViewState"[^>]*value="-?([^"]*)"
This solution was tested in an application that uses JSF 2 and Primefaces
FileUpload and may work for other frameworks.