Hey guys! I have a question regarding Gatling test.

I have a use case where the endpoint that I am testing returns 200 OK response but with errors as well (if any) in a list as a response body. I am thinking how to construct a test for it as the check() method which causes the test to fail is only restricted to HTTP checks. I can try grabbing the response body from session and check to see if the list is populated with errors, but that won’t make the test fail. Let me know if there a way or you have any suggestions. Would really appreciate it.

Thanks,
Anu

Hi,
What did you get in response body? is it a json response? if yes then you can use http checks…
ex. .check(jsonPath("<parameter name").is("<val that you want to verrify"))

Thanks,
Rohit A