Jmeter EVENTVALIDATION and VIEWSTATE values passed incorrectly

1.5k Views Asked by At

I need to login a webpage. Passing the parameters from navigation screen,to POST to login screen i used CSS/Jquery extractor. of the three values extracted, Viewstate generator value is passed correctly. But Eventvalidation and Viewstate has completely different values when passed.

Values i get from Navigating to the website:

`VIEWSTATEGENERATORExtractor=C2EE9ACC,VIEWSTATEExtractor=r6PHK0,
EVENTVALIDATIONExtractor=xLhYcNpU3vb8+Om5`      
And passed as VIEWSTATEGENERATOR =C2EE9ACC
EVENTVALIDATION value=Blncm,VIEWSTATE" value=iFpefxx7

Some values are generated when passed through but not from previous browser navigation.

DO not understand how 1 value can be passed correctly and not other two. I use same format for all the three

1

There are 1 best solutions below

1
On

This is the whole point of viewstate and eventvalidation parameters, they are different each time, that's why you need to correlate them for each request.VIEWSTATE has all the information about client-side page state, basically what did the user do on each step. EVENTVALIDATION is a form of CSRF protection, so it has to be different each time as well.

You can validate that your script is doing what it is supposed to be doing using View Results Tree listener.

References: