Hi I am new to gatling and performance testing and I am stuck at one place. I am trying to extract sessionID from post request response body and this is getting failed. Below is my cod and result. When I validated json path, it is giving me correct value. Why Gatling is not outputting me value
.check( jsonPath( "$" ).saveAs( "RESPONSE_DATA" ) )
.check(bodyString.saveAs("Response_Body"))
//.check( jsonPath("$..[11].contextValue").saveAs("SessionID")))
.check( jsonPath("$.[11].contextValue").saveAs("ID")))
.exec( session => {
println( "TeamXP Login Response Body:" )
println( session( "RESPONSE_DATA" ).as[String].contains("pcwxSessionID") )
println(session ("Response_Body").as[String])
println(session ("ID"))
session
})
I am getting below output
---- Errors --------------------------------------------------------------------
jsonPath($.[11].contextValue).find.exists extraction crashed: 1 (100.0%)
string matching regex ‘[^*.()=!<>\s]+’ expected but '[…