Hello, I’m currently using the Java flavor of Gatling 3.11.5.
At the HTTPprotocol level I defined a 200 HTTP status check:
HttpProtocolBuilder httpProtocol = http.baseUrl("http://somehost")
.check(status().is(200));
As expected this applies to all HTTP requests. But I’d like to use a specific HTTP check (i.e. to allow both 200 and 500 reponse status) for some selected requests.
I tried to use status().in(200, 500)
at the request level but it does not work for 500 response, I receive a status.find.is(200), but actually found 500
message.
I guess this happens because the protocol check takes precedence.
So is there a way to override an HTTP status check for several selected HTTP requests ?