How can I fail a test in a pre-request script in Postman due to some condition and not hitting the API?
If some condition is not satisfying, I need to fail the test case, and for that API, I don't want to run that API and proceed to the next API.
For example:
I want to write a condition in pre-request,
If that pre-request is satisfied, only then should we hit the API and validate.
Otherwise, it should fail the test without hitting the API and continue to the next test.