12

In a gatling test, I am trying to verify whether the response for a request is either 204 or 404.

val scn = scenario("Scenario A").exec(httpRequest
    .check(status.is(204)))

where httpRequest is a request defined elsewhere. I want to check whether the test to pass is response is 204 or 404. Couldnt find anything to use or in a check

Akhil
  • 183
  • 1
  • 1
  • 8

1 Answers1

23

Please have a look at the documentation:

status.in(204, 404)
Stephane Landelle
  • 6,990
  • 2
  • 23
  • 29