I can successfully read one field value and match it for a passed validation test
* def query = "select first_name from uds.enrollment where email = '" + randomEmail + "'"
* def dbresponse = db.readValue(query)
* print dbresponse
* match dbresponse == (randomFirstName)
We also store first_name inside a borrower object field in the same DB table.
I can retrieve the whole object here by calling:
* def query = "select borrower from uds.enrollment where email = '" + randomEmail + "'"
* def dbresponse = db.readValue(query)
* print dbresponse
But when I try to match
* match dbresponse.first_name == (randomFirstName)
It errors with
match failed: EQUALS
$ | actual path does not exist (STRING:STRING)
'#notpresent'
'Kerrie'
seems like it should just work, but I maybe missing something?
thanks!