Does Pactum support JsonPath assertion? #192
-
When you have large Json with huge list of similar arrays in that json, verifying a value with reference from another data will help. If not then , is ther any way to assert data with reference to another data in a json ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Almost all assertion methods support JsonPath provided by json-query. Please refer the docs |
Beta Was this translation helpful? Give feedback.
-
Thanks, ASaiAnudeep for the reply. I was using all the assertions mentioned in docs but trying to use Jsonpath usages based on this "https://goessner.net/articles/JsonPath/ " that's why it wasn't working for me. After exploring json-query based Jsonpath from your suggestion and docs , I believe its the easier and best way to find jsonpath than using the xpath like syntax from "https://goessner.net/articles/JsonPath/ " and using any online json path finder. Thanks |
Beta Was this translation helpful? Give feedback.
Almost all assertion methods support JsonPath provided by json-query. Please refer the docs