How to use like for JSON object of length more than one #398
Replies: 1 comment
-
I have fix this using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my response, I received a few times a length of 2 or length of more than 2.
sample response,
For me, validationis is the key for the
indianStudents
, and the below part of the response is not important so I want to use thelike
matcher herebut this is not working, giving an message
AssertionError [ERR_ASSERTION]: Json doesn't have 'array' with length '1' at '$.data.foreignStudents' but found 'array' with length '3'
I want to ignore the length as it is not important content for me. How do I do it?
Beta Was this translation helpful? Give feedback.
All reactions