- I am performing load testing using
jmeter
. I created a test plan with https request and used regular expression extractor to extract variable returned from first https request.
Variable: csrftoken
Regular Expression: value="(.*)"
Template: $1$
Match Number: 1
Default Value: EMPTY
2.Used JSR223 Postprocessor
and verified that the extracted variable are correct.
log.info("***************************"+vars.get("csrftoken"));
- I Created new test plan for signin request were I'm using the variable which was extracted in first test plan and defining the variable in parameters as
csrfmiddlewaretoken : ${csrftoken}
email : xxxxxxxx@gmail.com
password : Password
But ${csrftoken}
variable are not getting picked up when I run the request.
Is there any other possible way to make use of variable from one test plan to other test plan and run the request with the same variable.
Help would be really appreciated!!
Thanks in advance.