-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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?
https://app.leanboard.io/board/2888ba13-a6b1-43bd-999f-195766a0cef5
Metadata
Metadata
Assignees
Labels
No labels