Tried with JMeter: How to know why my regular expression extractor in JMeter is not extracting the data but still not able to replace my view-state, its throwing [ViewStateException: Invalid viewstate. ] error . Please check the attachment , an my script has not _EVENTVALIDATION . enter image description hereViewstate
3 Answers
As i am observing from your attached image
You need to pass same `Reference name` as a value of __VIEWSTATE in Next request

- 496
- 3
- 15
First Cross verify, Is your correaltion is correct or not? (you can use debug sampler to check the correlation)
If yes, then first mistake is, you had given reference name as "VIEWSTATE" in below shown snapshot
But you are passing ${jsfViewState} in other snapshot, so correct it and pass same reference name i.e. ${VIEWSTATE}
It'll resolve your issue, if issue still persists then click on encode button beside Name-Value pair because sometimes there is some mismatch in encoding format between the response which we capture and the value which we have to pass

- 396
- 1
- 13
-
Tried with both option with encoding and without encoding but meter through error , [INVALID Viewstate] – Tarit Ray Mar 01 '16 at 10:47
-
Don't be confused with ASP.NET ViewState and JSF Viewstate, they have similar nature but different underlying technologies and different parameter names
Given you correctly correlated the value, I believe you need to change __VIEWSTATE
parameter name to javax.faces.ViewState
and it should work.
See Testing a JSF Application with JMeter guide for a little bit more detailed explanation on the topic and How to debug your Apache JMeter script guide for some troubleshooting techniques.
-
appreciate your answer, view-state error has been resolved but still my response not increasing.Please check with my new question '' http://stackoverflow.com/questions/35721769/regular-expressionn-not-able-to-correlate-my-test-scenario-with-viewsate-in-jmet '' explanied the scenario. – Tarit Ray Mar 01 '16 at 11:38