richie
6 years agoCommunity Hero
JSONPATH - MULTIPLE RECORD SYNTAX IN GROOVYSCRIPT?
Hi,
I always struggle with JSONPATH relative to XPATH and this is another instance.
I have an assertion in my groovy script with the following syntax for a single record in the resultset ...
- 6 years agoAre you expecting result is list of names?
If so,
assert object.data.Name == ['name1', 'name2'...]
Does it help?