Must be launched via the collection runner (see here)
http://localhost:8080/xxx/{{id}}
const SIZE = 10000
const FROM = 10000
let ids = pm.collectionVariables.get("ids");
if(!ids || ids.length == 0) {
ids = [...Array(SIZE).keys()].map(i => i + FROM)
}
let id = ids.shift()
console.log(id)
pm.collectionVariables.set("id", id);
pm.collectionVariables.set("ids", ids);
const ids = pm.collectionVariables.get("ids");
if (ids && ids.length > 0){
postman.setNextRequest("http://localhost:8080/xxx/{{id}}");
} else {
postman.setNextRequest(null);
}
pm.test("Status code is 404", function () {
pm.response.to.have.status(404);
});