Using match each contains for json array items assertion

Here you go:

* def expectedSkills = ['training']
* match each response contains { skills: '#(^expectedSkills)' }

You know, you should really read the documentation. It will save you a LOT of time 🙂 https://github.com/intuit/karate#schema-validation

Leave a Comment