Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Support jsonpath queries for more granular response checks#1464

C

APIs commonly return a response in json format. Testing the response body as plain text using keyword assertions is not very reliable. It would be better if you could add support for using e.g. jsonpath expressions to query the parsed response string as actual json, so that the presence or value of certain field(s) can be tested. This allows for more granular and reliable checks.

a year ago
S

They added JSONPath with API checks, but it can’t do queries like whatever_array[?@.foo=="bar"], which unfortunately limits its usefulness.

6 months ago

Same issue, we need to support. Need to have support for JSONPath filters like $.components[?(@.name==’foo’)]. as currently we see “no attribute” for those expressions

6 months ago
Changed the status to
Planned
6 months ago
Changed the status to
Idea
6 months ago

Hey all - this is released alongside a few other improvements. You can now use jsonpath filter expressions, assert headers and status codes. Assertions also now has better type awareness and allow you to define types like json object and arrays, too.

14 days ago
Changed the status to
Completed
14 days ago