Search code examples
jmeterperformance-testingjmeter-plugins

Jmeter - How to extract JSON response data and assign those to cookie?


I want to extract json response data and assign them to next request cookies. Can anyone help me with this.

Thanks in advance.


Solution

    1. You can extract the required value from JSON using JSON Extractor. See Jayway JsonPath - Getting Started to learn more about JSONPath.
    2. Once you have a JMeter Variable holding the value you can use HTTP Cookie Manager to configure JMeter to send an extra cookie.