Contributions
Re: How to assert count of a certain field in a JSON response is lesser than or equal to a certain value
Hi Rao, Thanks for your response. I have tried using "for existence with script" option to write the script to validate using Soap UI NG Pro but it has throwed me an error "Not Implemented for JSON!" Thanks Sayee9 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes2CommentsHow to assert count of a certain field in a JSON response is lesser than or equal to a certain value
Below is my sample response I have right clicked on matchingaddress field in outline mode and selected add assertion-->for count and it gives me the json path expression as$.matchingAddresses.addressList in Expected result section i need to give the condition as <50 but it is not working as i assume it is exactly matching. Can you please guide me how to implement this logic? matchingAddresses": { "addressList": [ { "addressTxt": " 1050 10 AVE SW SALMON ARM BC V1E4M2 ", "locationId": "2874394" }, { "addressTxt": "1 1050 10 AVE SW SALMON ARM BC V1E1T2 ", "locationId": "2874389" }, { "addressTxt": "3 1050 10 AVE SW SALMON ARM BC NPC ", "locationId": "2874390" }, { "addressTxt": "4 1050 10 AVE SW SALMON ARM BC NPC ", "locationId": "2874391" }, { "addressTxt": "5 1050 10 AVE SW SALMON ARM BC V1E1T2 ", "locationId": "2874392" }, { "addressTxt": "7 1050 10 AVE SW SALMON ARM BC V1E1T2 ", "locationId": "2874393" }9 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes6Comments