Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Extracting json data from JMeter

Shulou Source: shulou.com Published: 2022-06-03 07:04:24 11月11日 Update

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.

Tags: Processing data complexity above representatives variables can be passed by processors files directories boundaries ease of use control Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn OPPO Reno Docker Microsoft