So, you said that you check this expression $…searchResults.file[*].link[0].$
But in the Gatling, scenario, you don’t use the same one, .check(jsonPath("$…searchResults.file.link[0].$")
Could you try again with .check(jsonPath("$…searchResults.file[*].link[0].$") ?
The JsonPath part has been rewritten from scratch using our own engine, https://github.com/gatling/jsonpath. We had too many issues like the own you describe. I have checked and your JsonPath expression is correctly resolved with this version.
Hi, Since I changed to the SNAPSHOT version mentioned above, I have been unable to Log my responses for debugging purposes.
I get this error
15:50:09.965 [ERROR] i.g.a.ZincCompiler$ - /home/alan/devel/gatling/gatling-charts-highcharts-2.0.0-SNAPSHOT/user-files/simulations/pac/ValidateV2.scala:15: value getResponseBody is not a member of io.gatling.http.response.Response
15:50:09.988 [ERROR] i.g.a.ZincCompiler$ - println(“Response Type:” + response.getResponseBody())
for this code:
val httpP = http
.extraInfoExtractor((callId,status,session,request,response) => {