How to parse this json and fail test if error key exists?

15 views
Skip to first unread message

Sergey Dashko

unread,
Apr 25, 2017, 6:53:57 AM4/25/17
to Gatling User Group
I want parse this json:

{
  "jobId": "176b159e-cc0a-41c5-9681-a17507a18c41",
  "result": "{\"error\":\"Some Error\"}"
}

I've tried it like this:
.check(status.is(200), jsonPath("$.result.error").notExists)

but seems jsonPath can't find anything in result key.
How to do what I want correctly?

Thanks in advance.

Sergey
Reply all
Reply to author
Forward
0 new messages