Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gatling-scala check 2 status codes (either or)

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

like image 698
Akhil Avatar asked May 15 '15 15:05

Akhil


1 Answers

Please have a look at the documentation:

status.in(204, 404)
like image 175
Stephane Landelle Avatar answered Sep 18 '22 22:09

Stephane Landelle