Add the JSON path postprocessor to the post processor.
Use:
The current interface response returns the JSON in which the content is extracted, as a variable can be passed in different requests.
1. JSON path postprocessor is not a jmeter plugin, so you need to download the installation separately Http://jmeter-plugins.org/downloads/file/JMeterPlugins-Extras-1.4.0.zip
2. Installation method: Extract Extras with Libs set to JMeter corresponding directory-"Restart JMeter
3. Value for subsequent use
1) Variable names variable name
2) The value in the return value of the Json Path expressions.
Json Path Syntax Https://github.com/json-path/JsonPath
3) Default values Defaults
So we can go to the.
In this company project test, the values that are taken are passed into the URL, and some special symbols are encountered. Here's how HTTP handles special symbols:
Some symbols cannot be passed directly in the URL, and if you want to pass these special symbols in the URL, they will be encoded. The encoded format is: The ASCII code of the% plus character, which is a percent percent, followed by the ASCII (16-binary) code value of the corresponding character. For example, the encoded value of a space is "%20"
The input with parameters in the HTTP request needs to be encoded and then transmitted.
JSON Path postprocessor of the jmeter-extractor