Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.
Does newman call some kind of system exit? I am attempting to call it from a node script. I want to call newman from a loop. This is not the same as calling newman iteratively. I want to make separate calls each time.
My loop iterates only once then the whole process terminates–no errors, a happy end.
My node script looks like this:
for (i = 0; i < argv.calls; i++) { newmanRun(); // This loop executes only once, successfully, then quits. }// This is how we call newman.
const newmanRun = () => {
return newman.run({
collection: <a_valid_postman_export>,
reporters: "cli",
insecure: true,
iterationCount: argv.iterations
}, function (err) {
if (err) { throw err;
console.log("Interative run complete!");
})
}
Thanks in advance.