The Response data look like following within Script tag
var csrfParam =
"SKtEMgZtO0H8EYHkAZIQ4tcS5bC8jKrD=y2G5Of06jgHbkNdHNleFKiXoBMC62veD";
var securityTokenName = "SKtEMgZtO0H8EYHkAZIQ4tcS5bC8jKrD";
var securityTokenValue = "y2G5Of06jgHbkNdHNleFKiXoBMC62veD";
I'm using regular expression extractor as following:
Reference name : MYREF
Regular Expression : securityTokenName ="(.+?)" securityTokenValue="(.+?)"
Template : $1$$2$
I'm access this variable in next Jmeter request to build the URL:
${MYREF_g1}
${MYREF_g2}
Expecting to get MYREF_g1 =SKtEMgZtO0H8EYHkAZIQ4tcS5bC8jKrD
and MYREF_g2 =y2G5Of06jgHbkNdHNleFKiXoBMC62veD
But THIS is not working .
Any help would appreciated!
securityTokenName = "(.*)"& print the value using bean shell script(use beanshell post processor)log.info(vars.get("REGEX_REF"));if its work fine go to second. - Nithin CVsecurityTokenName = "(.*)"regex because you may not considered space part in regex. Try a wildcard test with regexsecurityTokenName"(.*)", If = "SKtEMgZtO0H8EYHkAZIQ4tcS5bC8jKrD is coming as output jmeter is working fine otherwise it may have another issue. - Nithin CV