0

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

viwstate2

Community
  • 1
  • 1
Tarit Ray
  • 944
  • 12
  • 24

3 Answers3

0

As i am observing from your attached image

You need to pass same `Reference name` as a value of __VIEWSTATE in Next request

enter image description here

vikas
  • 496
  • 3
  • 15
0

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 snapshotenter image description here

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 enter image description here

Kaushlendra Jha
  • 396
  • 1
  • 13
0

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.

Community
  • 1
  • 1
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • 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