I’m trying to create tests for several different response statuses that one GET call can return (200, 206, 400, 403, 404, etc.). I can trigger each response by making the call with specific input.
My question is, is there a way to hit a specific endpoint several times in one test run with different input each time and a different assertion each time?
I know you can loop over the same endpoint with “postman.setNextRequest()”, but as far as I can figure out it will then just uses the same input and assertion each time.
One thing I considered is duplicating the call several times in my collection, but for maintainability (and my own sanity) I would like to prevent that.