Jmeter --Json Extractor (post processor)

First, the use scene

  Json Extractor postprocessor for use in the format of the HTTP request returns the json for obtaining a value returned in json. Variables and stored for subsequent requests to call or assertions.

 

Second, the use

1. Create an HTTP request.

2, select the post processor --- Json Extractor

 

3, in the result tree view, locate the desired value by json json path expression.

 

 4, provided Json Extractor

 

 1) name: json post-expression name, logo effect

2) Name of created variables: variable name stored later with reference} $ {variable name

3) Json Path expression: json path expression invoked by the previous step

4) Match No. (0 for Random): matching digits (0 represents a random, 1 for the first, -1 for all)

5) Computer concatenation var (suffix_ALL): whether to count all upcoming matches to save all values, called "variable name _ALL", usage scenarios need to get multiple values ​​are behind the need for the operation of this set of data. 

6) Default Values: can not find the default value is usually set to NOT FOUND

 

 Third, the key point

Json Path expression of use

 

Guess you like

Origin www.cnblogs.com/little-little-bai/p/11331434.html