I am using the latest Gatling v2.1.7
I created a REST based call using HTTP protocol as shown below.
When I replay the script I am encountering a “java.io.IOException: Remotely closed” exception. I have updated the keystore info in gatling.conf as well. The same request works fine from POSTMAN client.
Script Snippet
class RecordedSimulation extends Simulation {
val httpProtocol = http
.baseURL(“https://<>:<>”)
.proxy(Proxy("<>", <>))
val headers_4 = Map(“Accept” → “application/json;v=3”)
val headers_5 = Map(“Content-Type” → “application/json;v=3”)
val headers_8 = Map(“Api-Key” → “YYY”)
val scn = scenario(“RecordedSimulation”)
.exec(http(“request_0”)
.get("/xxx/yyy/zzz")
.headers(headers_4)
.headers(headers_5)
.headers(headers_8))
.pause(6);
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}
Error Log
Simulation default.RecordedSimulation started…