Get all checks from HttpRequestBuilder

Hi
I have a simple request:

  val request: HttpRequestBuilder = http("Home")
    .get("https://gatling.io")
    .check(jsonPath("$.rootEntityId").is("Some value"),
      jsonPath("$.id").is("2")
    )

I want to get all checks from it and save them to the logs.

In the debugger they are visible when executed:

request.httpAttributes.checks.head.wrapped.asInstanceOf[Check.Default].extractorExpression


But I can’t get to them directly from the code.
Is it possible to access the checks from the code or at least log them to a file?

Scala version: 2.13.9
gatling version: 3.9.5

Hi,

No, for a given request, only the first failure is reported.

I thought so :frowning:
Thank you for your answer.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.