JSON/YAML Path AssertionThis plugin was originally developed by Atlantbh d.o.o., released as jmeter-components, then merged into JP@GC, and reworked significantly in v.1.2.1 DescriptionThis component allows you to perform validations of JSON or YAML documents (Use First, it will parse the JSON and fail if the data is not JSON. Second, it will search for specified path, using syntax from Jayway JsonPath 1.2.0. If the path is not found, it will fail. Third, if JSON path was found in the document, and validation against expected value was requested, it will perform validation. For the Note that if the path will return array object, it will be iterated and if expected value is found, the assertion will succeed. To validate empty array use
NOTE: In case when checked YAML Input Format then plugin will convert YAML to JSON. |