Is it possible to stop a test running in the pre-request script but not stop the whole test collection running?
I have seen various posts mentioning these ways:
postman.setNextRequest(null);
throw new Error("Error");
These will stop the test from completing but also seems to stop the whole test collection run which I don't want.
Update
Pre-request script:
var test = 'Wait for create transaction request to complete';
var numRetriesRemaining = postman.getEnvironmentVariable("numRetriesUntilCompletionExpected");
if (numRetriesRemaining == -1) {
// stop the request from being sent and stop the "Tests" part from running
// but also don't stop other tests in the collection
}