Hi everyone,
I’m trying to convert an existing Gatling test written in Scala to Java. I’m struggling with passing the StringBody to the body of the HTTP request.
The documentation provides code examples for Java (https://gatling.io/docs/gatling/reference/current/http/request/#full-body) but I’m not sure if they’re correct as there’s no “new” operator to instantiate the StringBody object.
Even with adding the “new” operator, none of the provided examples compile:
new StringBody(session → “{“test”: 42}”)
new StringBody("{“test”: 42}")
I’m usin Gatling 3.7.2 with the Maven Plugin 4.0.1
Kind regards,
Philip