You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm trying to compare if the value of a property from the response body is equals to a value obtained from the database.
My scenario is very similar to this one below I tried in very different ways to use the verify but it
either it can't be evaluated or is evaluate to null.
Scenario: Compares database and response body
* uri: http://www.myservice.com/get_something
* dir: features/queries
* query: find_something.sql
# It's finding a single line like [ { id=123, name="SomeName"} ]
* var: query_result<-'$[0]'
* send: GET
# response body {"id": 123, "name": "SomeName"}
* status: 200
# some verify usages that I tried
* verify: '$.id'=code: ${query_result.id}
* verify: '$.id'=code: ${query_result.get('id')}
* verify: '$.id'=${query_result.id}
Did pandaria implemented this kind of step already?
Unfortunately no, we haven't implemented those kinds of steps yet at this stage, currently, it only supports primitive variable, we haven't met this scenario, but it definitely a valid use case, I will work on to implement this, I will probably go with:
Hello!
I'm trying to compare if the value of a property from the response body is equals to a value obtained from the database.
My scenario is very similar to this one below I tried in very different ways to use the verify but it
either it can't be evaluated or is evaluate to null.
Did pandaria implemented this kind of step already?
https://app.leanboard.io/board/2888ba13-a6b1-43bd-999f-195766a0cef5
The text was updated successfully, but these errors were encountered: