Extracting json data from JMeter
If json is simple, boundary extractor can handle
Debug Sampler is used here, debugging is very easy to use.
When referencing, use ${test}
JSON Extractor
If JSON is complex, use this one.
#extract all, use *,-1 for all
When referencing, use ${hello_1}
Save variables to a file
First put jmeterSaveVar.jar in D:\apache-jmeter-4.0\lib\ext directory, restart jmeter
Right-click on request--Post Processor---SaveVar2CSVPostProcessor
Note: Each save clears the previous data, which can be controlled by modifying the "isClear" in the image above.