This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Testing and the fly likes Testing JSF with JMeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing JSF with JMeter" Watch "Testing JSF with JMeter" New topic

Testing JSF with JMeter

Tim Francisco

Joined: Apr 03, 2010
Posts: 12
I am trying to do load/performance test of JSF2.0/richfaces application with JMeter but having some issues with it. I am following this instruction from here JMeter.

But I am still having an issue as follows:

Can some one please help help me figure out why I am getting ViewExpiredException?
Tobi Witte

Joined: Jan 12, 2009
Posts: 3
Hello Tim,

I had the same problem and solved it. Here's what I did:

  • Locate the "viewState"-tag in the page source (Browser -> View Source)
  • Adjust the regex expression in the "Regular Expression Extractor" according to page source
  • Put your Regular Expression Extractor at the right place

  • The regex:
    In my case I added autocomplete="off". My Regex now looks like this:
    Location of Regular Expression Extractor
    I added the Regular Expression Extractor as child of the initial HTTP Request.

    It took me a few days to figure it out. I'm not sure what it was, maybe the wrong regex expression or the wrong location of the "Regular Expression Extractor". Finally it works.


    Professionally Trained SCRUM Master
    ISTQB Certified Tester - Foundation Level
    It is sorta covered in the JavaRanch Style Guide.
    subject: Testing JSF with JMeter