I have to load test an application that uses javax.faces.FormSignature in almost every request it sends. I'm using a xPath extractor like this to get the value of the FormSignature:
/html/body/div/div/div/form/input[@name='javax.faces.FormSignature']/@value
Then I'm declaring a user defined variable and parsing the value I get using a regular expression extractor like this:
value=(.+?)
I used the HTTP Proxy Server to record my session so I'm 100% sure what GET requests to extract these values from and the POST requests that will use the values as well. It's nto working and I haven't found anything online about using FormSignature and JMeter. I'm pretty new with JMeter too on top of that. Can anybody please help me?
Ok, I had the Tidy option checked before. And the xpath works (I've checked in firebug). Here's what I have: there's a jmeter user variable called FORM, then I use the xpath mentioned above to extract a value and apply it to FORM. Then I use a regular expression extractor to extract the value only (value=\"(.+?)\"). I'm applying this regex extractor to my jmeter variable ${FORM} since this is the one (I think) that contains the result of my xpath I extracted before. The reference name of this regex extractor is FORMVALUE and this is the value I'm passing to the post request. I'm not getting a clear error, it's jsut not working. The value that is being passed to my request is the default value I set which is "FORMVALUE not found". Any ideas?