Hi there,
here is my simple scenario with a StringBody
val scn = scenario(“get topic scenario”)
.feed(ssv(“gabriel/devices.ssv”).circular)
.exec(
http(“getTopic”)
.post(ServiceEndpoints.profile+"/device/subscriptions")
.headers(HeaderMapHelper.createHeaderMap(“POST”, null , “${deviceId}”, “${deviceInfo}”, “${userAgent}”))
.body(StringBody("""{ “id”: “001B1D25-D31C-453B-85D2-D00DB5A19F25”, “type”: 2, “label”: “KATWARN Dev”, “topic_id”: “katwarn-dev-topic”, “provider_id” : “kwrn_de”, “enabled”: true }""")).asJSON
.signatureCalculator(ProfileHmacSignatureCalculator)
.check(status.saveAs(“status”), status.is(200)))
When i try to access the requests body by request.getStringData() i get null.
What’s wrong
Thanks in advance
–Ulrich