In my Gatling test I have this test:
val HorizonPost: ChainBuilder = exec(
http("Horizon Post")
.post(getRouteInfoURI).basicAuth(s"${{EnvValues.RoadsApi_Username}}", s"${{EnvValues.RoadsApi_Password}}")
.body(ElFileBody("bodies/horizonPost.json")).asJson
.check(status.is(200))
)
It seems that It has problems with the 'current_timestamp' and gives this error:
body=
The request content was malformed:
Text '{{$current_timestamp}}' could not be parsed at index 0
The JSON file is:
"locationTimestamp": "{{$current_timestamp}}",
Can someone explain what I need to change? I'm relatively new to Gatling.
horizonPost.json? - Amerousful