Using JMeter
I need to extract the JSF view state value. I am able to extract the value.
Below is the viewstate form response:
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id4" />
My Regular expression extractor is as below:
<input\s+type="hidden"\s+name="javax\.faces\.ViewState"\s+id="javax\.faces\.ViewState"\s+value="([^"]+)".*/>
This works fine. I get j_id4
value correctly and places.
But my big problem is for every API call the value changes. First API call the view state value is j_id4
, but the next API call view state will be j_id5
How do I handle this?