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

enter image description here enter image description here

p_auth liferay authentication token used csrf protection, can handled in 3 easy steps:

design test scenario follows:

  1. open login page
  2. extract p_auth
  3. pass extracted values step 2 login request

step 2 in details:

if response text step 1 see p_auth in response body:

p_auth

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:

request details

to double check have logged in - check out response data tab of last request opens user dashboard:

verify login

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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -