JSON Path Extractor / regularization parameter extractor extract

First, why use this extractor?

With respect to the regular extractor is more like to use this small series json extractor, because positive correlation function is just like the feeling of the extract as lr, in fact, is to find the right boundary of the left margin, then the middle section of the card, to carry out orders, but json extractor is not the same, he can make you form the habit of a layered references, so they used his small series

Second, install a small plug-in is dependent jar package

1. dependent jar address: https: //pan.baidu.com/s/1-nXT2rooZNEBPCFJ47bvNA Password: ud50

2. After extracting the file copied into the corresponding location jmeter

Third, get started,

1. introduce the extracted value such as this interface I want to extract the return of token  

2. Create a json path extractior below

3. When references need to add $ {token} on the line

Fourth, tell us about the regular use of the processor, this thing is to draw a relatively small series that is very widely json, extract the cookie response header in what can be

1. Specific usage, see the following specific meaning on the line, today small with this, I found this is based on the left and right borders for a given value, so when we want to extract a parameter, such as the following that you want to extract csrf-token value of

2. This time you have to remember only the left must be able to determine this value with the right, otherwise you are more value out of, well, if I finished taking the value token is then wrote the following

3. This time you only need to copy that piece of code, then you will need to extract something directly into (. *?) Into regular expressions on the line

Reference name: this means nothing but generally filled easily fill key name your variables, but you need to reference back $ {keynam} 

Regular expressions: (.? *) Just now said the same copy source code will need to extract value change requires a unique positioning can remember or multiple values

                    The representative match any string + on behalf of one or more times? Representatives after it finds the first stop

Template: $ 1 $ representatives to the first value

Match numbers: 0 1 represents a random value representative of a first take

 
 

发布了91 篇原创文章 · 获赞 47 · 访问量 9万+

Guess you like

Origin blog.csdn.net/qq_30007885/article/details/102722023