Jmeter assertion assertion of JSON

When the response result is json format, with JSON easier determination assert

JSON assertion

> Add - assertion - JSON assertion

Way to judge

If the response is not the result of json format, fail

If you can not find json path elements, fail

If json path to find the element, do not set conditions, pass

If json path to find the elements, and do not meet the conditions, fail

If json path to find the elements, and in accordance with the conditions, pass

If json path returns an array of elements iteration to determine whether there is compliance with the conditions, there is the pass, then without fail

Assertion way

FIG embodiment is asserted as: match value

If you want to match a null value: Check Except null

To reverse the result of the assertion: Check Invert assertion

Meets asserted regular expression: assertion result value 5 digits => [0-9] $ {5}

 

Published 59 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43507959/article/details/104062708