Reading boolean response body

8 views
Skip to first unread message

Poliana Belo

unread,
May 24, 2018, 1:24:00 PM5/24/18
to Gatling User Group
Hello! I know very little about gatling and scala....and actualy I'm trying to read the response body of a request and i dont know how to do it with a boolean response. I found out how to read a Json only. Is it possible? 

A part of my code:

val test = scenario("Simulation")
.exec(http("request_0")
.post("/test/message")
.headers(headers_0)
.body(StringBody("""{ "k": "2C04A2", "d": "00010B901080f000f00000", "t": """ + System.currentTimeMillis + """ }""")).asJSON
.check(regex(true).find(0).exists))
Reply all
Reply to author
Forward
0 new messages