Can Gatling config be set to accept both 200 and 304

Can Gatling config be set to accept both 200 and 304

is this right?

    .exec(http("Run Magnolia Load Test")
      .get("/")) // Replace "/endpoint" with your endpoint
    .check(status.is(200))
    //.check(status.is(304), status.is(200))
    .pause(5)

    .during(duration) {
      feed(urlList)
        .exec(
          http("${PATH}")
            .get("${PATH}")
            .check(status.is(200))
          .check(status.is(304), status.is(200))
          //will pause between 10 and 30 seconds
        ).pause(5, 20)

Hi @BhartiH,

You can read the Checks documentation and learn that you can use the in validation.

          http("${PATH}")
            .get("${PATH}")
            .check(status.in(200, 304))

Cheers!

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