Contributions
How to assert count of a certain field in a JSON response is not equal to 0
The attached snapshot shows the format of my JSON response and the assertion that I would like to have is a simple one which would pass if the clients node is not empty. I was thinking of something like $['clients'].length() != 0 but I can't seem to make this work. I'm not sure if there is a predefined assertion I can use (JSONPath Match???) or if my only option is to use Groovy Scripting (which I've never done before). Thanks!7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes2CommentsCan I input the JSON raw data on the Raw tab instead of adding each key-value pair under Parameters?
I have an endpoint that supports a POST with 20 key-value pairs on the body. Is there a way to directly type raw JSON data on the "Raw" tab instead of having to add each key-value pair manually as a Parameter (and then selecting "Post QueryString")?Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes3Comments