jmeter- regular expression extractor (rpm)

Reference: $ {moduleId_g1} denotes taking the first regular expression value, the n-th word, the format $ {moduleId_gn}

Name / Notes: literally

Apply to / want to check the response field: the default, make changes if special needs

Reference name : set up their own, to get regular value will be assigned to this field. When references below, refer to this name. Reference is written: $ {Token}

Regular expression : used to obtain the desired value of regular expressions. Value between the double quotes will be assigned to the reference name Token. There may be a plurality; spaced

                       . Matches any string indicates

                      + Means match one or more times

                      ? Indicates a match to the first match after the match is stopped

Template : If there are multiple expressions in regular expressions, then resolves to the first few values assigned to the Token. $$ with enclosed, then a general, use $ $ 1, $ 4 $ fourth means matches a regular expression, there may be a plurality of format as $$ $ 1 $ 4

Match numbers : as a plurality of response information responseToken, the value of n will be to extract all of responseToken.

                   Matching numbers 0 represents a random value assigned to a responseToken Token, and 1,2,3 ..... indicates a value corresponding to the first few.

                   0 more general use.

                  For all values ​​of responseToken, is set to match the number 1, this time value would be assigned to all the responseToken Token. Token into a list, such as like references, $ {Token_n}, n represents the n-th value

省却值:表示正则表达式未匹配到数值时,如此处设置了值,则此值会被赋值给Toke

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11228263.html