I have to run my collection on two different Country levels so I have my iteration set up as one iteration for one country, but some of the endpoints are not country-specific and need not have to run twice.
Is there a way I can avoid running certain endpoints only once in the runner based on iteration?
I tried this way by adding an Iteration Count column in my data.csv
if (pm.iterationData.get(“Iteration Count”) === 1) {
postman.setNextRequest(‘request name1’);
} else {
postman.setNextRequest(‘request name2’);
}
but it didn't help.