Check auth credentials in pre-script are missing(or not)

Hi,

I’d like to run a scenario where I assert that the request needs to be send with auth (bearer token, basic auth… whatever) else it won’t even send and fail… how can I programatically write such an assertion? I don’ t want to manually uncheck options in the Auth tab, and I also don’t want to have a duplicit test just to have the Auth tab unchecked for this type of test. Plus, in that case, the request would still be sent and I’d presumably receive 401 or sth… just to make clear that that’s not what I’m after…

tldr; How to assert and fail sending request if auth parameters are not set.

thank you for your input guys,