• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Testing JSF with JMeter

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
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?
Thanks.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

    Tobi
     
    Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
    Gift giving made easy with the permaculture playing cards
    https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    reply
      Bookmark Topic Watch Topic
    • New Topic