Hi, I am trying to get the request / response being written into simulation.log however I get an error
“value requestInfoExtractor is not a member of io.gatling.http.config.HttpProtocolBuilder
possible cause: maybe a semicolon is missing before `value requestInfoExtractor’?”
I am using Gatling 2
The code looks somewhat like this:
import io.gatling.core.Predef._
import io.gatling.core.session.Expression
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.http.Headers.Names._
import io.gatling.http.Headers.Values._
import scala.concurrent.duration._
import bootstrap._
import assertions._
import java.net.URLEncoder
class RecordedSimulation extends Simulation {
val httpProtocol = http
.baseURL(“http://localhost:ZZZZ”)
.proxy(“localhost”,ZZZZ).httpsPort(YYYY)
.acceptEncodingHeader(“gzip”)
.connection(“close”)
.userAgentHeader(“SMTH”)
.requestInfoExtractor( (request: Request) => { ListString } )
.responseInfoExtractor( (response: Response) => { ListString } )
…
setUp(scn.inject(atOnce(1 user))).protocols(httpProtocol)
}