Are you sure that your Regular Expression Extractor is correctly obtaining Var1
? If you're testing RESTful API it's better to use JSON Path Extractor available via JMeter Plugins (you will need Extras with Libs Set).
Configure JSON Path Extractor as follows:
- Reference Name:
Var1
or whatever you like - JSON Path:
$.Var1
this one assumes your response.
So you would be able to provide the variable value as ${Var1}
or ${__V(Var1)}
to 2nd request.
See Using the XPath Extractor in JMeter (Scroll down to "Parsing JSON") for more details on how to properly install the extension and build up JSON Path queries.
Hope this helps.