I don’t know a great deal about the context you work in and the reason for those checks, I can only offer a couple of different approaches that may or may not work
If you know which checks cause that 429 status code, you could separate them out to different folders? Bring the tests down a level rather than having them all at the collection level? That might add another level of control.
Or maybe changing the test to look for the 429
status code and skipping it that way but then you run the risk of skipping ones that you thought where going to part of the 2XX range.
if (pm.response.code === 429) {
pm.test.skip("Too many requests", () => {
pm.response.to.be.rateLimited
});
}
else {
pm.test(`Status code was ${pm.response.code}`, () => {
pm.response.to.be.success
});
}
There are lots of different things to consider but it’s tough to give a better honest without being in your context.