Hi Chris ,
thanks for the reply ,it was basically a product feature suggestion to smartbear team to have inbuild feature to achieve the above steps where in readyApi will provide you the drop down to exclude or include the jsonpath of to validate
Internally it will generate the json path of response and iterate over the jsonpath and ignore the jsonpath where user has opted exclude and validate the json path value with passed value for include drop down
validate "savedresponse" with actual response
Exclude-$..versionid
Include-$.customer[2].name->punter or $globalvalue
Here i am validating the incoming response with "savedresponse" ignoring all the versionid and expecting name at second place to be punter or saved global variable value
Remaining json path it will validate exactly with saved response
As a user one just have to tell what fields he wants to ignore or validate with some value
Related Content
- 13 years ago