Read this first: https://github.com/intuit/karate#rules-for-embedded-expressions
And what you are looking for is this: https://github.com/intuit/karate#jsonpath-filters
* def ids = karate.jsonPath(response, "$.kittens[?(@.name=='" + name + "')].id")
More Related Contents:
- Karate API Testing – Reusing variables in different scenarios in the same feature file
- Error using DBUtils in first scenario [duplicate]
- In Karate how we can collaboratively work along with BA to automate business scenarios
- Karate framework retry until not working as expected
- Do Karate support .avro file as an input request?
- Pass additional parameters to karate-config.js via command line via Maven
- Is possible to execute curl in Karate tests?
- How do i use javascript executor in Karate UI
- Check 2 differents status with Karate
- Is it possible to do soft assertion in the karate
- How to implement Basic Auth using Karate?
- Karate UI – Running scenarios in parallel throws an error ‘HttpHostConnectException: connect to localhost:9222’
- Karate Tests Stuck on Running Forever
- Handling JWT bearer token from ADFS
- Capability of using Karate along with selenium webdriver
- Attaching screenshots to json report
- Is there an option for us to customize and group the test scenarios in the statics section of the Karate Gatling Report?
- I cannot get the inner value of a JSON object
- What’s the purpose of karate-junit5 when you can run tests without it?
- How to run karate tests from project jar?
- Using match each contains for json array items assertion
- [karate][standalone] Error : could not find or read file
- How to rerun failed features in karate?
- How to handle requests with signatures on karate tests?
- Karate: Validate a specific date in JSON response
- No tests run in maven project with karate module
- Karate Gatling – exclude specific request or feature from report [duplicate]
- Is there a simple match for objects containing array where the array content order doesn’t matter?
- Karate UI: Locating text via CSS
- Karate – Setting global request headers