Quantcast

How to modify JMeter scripts which handle JSF ViewState?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to modify JMeter scripts which handle JSF ViewState?

John Soye
Hi,
I'm trying to record some jmeter scripts for a JSF Web Application and
I'm wondering how to handle the javax.faces.ViewState parameter on my
POST HTTP Request Samplers. I've followed the instructions on
http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter but it's
still not working. If someone could advise me what I may be doing
wwong, I'd be very grateful. The steps I took were:

(1) Recorded the script as normal with the HTTP Proxy Server.
(2) Added a Regular Expression Extractor as a child of the Thread
Group with the parameters mentioned in the above URL (Reference Name:
jsfViewState etc.).
(3) Replaced all the values of "javax.faces.ViewState" with
${jsfViewstate} in every sampler that this occurred (including the
first occurence of it - maybe this is wrong).

Many thanks, John.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to modify JMeter scripts which handle JSF ViewState?

dnama
This post has NOT been accepted by the mailing list yet.
Hi John,
Did you ever have luck with this issue?

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to modify JMeter scripts which handle JSF ViewState?

Sven
In reply to this post by John Soye
Properbly the regex was faulty. At least I had a problem with the regex.

I could solve the problem by using a XPath Extractor instead of a RegEx Extractor.

The xPath I used was: string(//input[@name='javax.faces.ViewState']/@value)

--
http://www.svenlange.co.za
Loading...