jmeter - Liferay p_auth correlation -
in application value of p_auth dynamically changes tried handle correlation , seems fine me not getting succeed.
i attaching screenshots , please me identify wrong
p_auth liferay authentication token used csrf protection, can handled in 3 easy steps:
design test scenario follows:
- open login page
- extract
p_auth
- pass extracted values step 2 login request
step 2 in details:
if response text step 1 see p_auth
in response body:
in order extract jmeter variable add regular expression extractor child of 1st request , configure follows:
- reference name: meaningful, i.e.
p_auth
- regular expression:
p_auth=(.+?)"
- template: $1$
usually not required extract formdate
parameter, substitute ${__time(,)} function
so request looks like:
to double check have logged in - check out response data tab of last request opens user dashboard:
see how load test csrf-protected web sites article little bit more detailed information on bypassing csrf protection in jmeter tests.
p.s. see http header manager in this screenshot. if got during recording - remove it can contain hard-coded irrelevant headers may harm or @ least review headers , leave (or correlate) need
Comments
Post a Comment