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.
I am trying to do some load testing. I am using newman in nodejs.
In my script I have async.parallel to execute several collections in parallel. Then repeat set of parallel excution every 5 sec. In each run I have the following options:
collection: require('./collection.json'), environment: require('./environment.json'), timeoutRequest : 0, // infinite timeout delayRequest: 1000, // ms iterationCount: 5
Tha main loop looks like:
async function sleep(ms) {return new Promise(done => setTimeout(() => done(), ms));}
async function orchestrator() {
for(let j=0; j < cycles; j++) { async.parallel(runItems, function (err, results) { if (err) { throw err; } } ); await sleep(5000); }
The last 3 lines of output are:
code: ‘ERR_SCRIPT_EXECUTION_TIMEOUT’
}
Process exited with code 1
I set cycles to 500. All goes well for 70+ cycles but then I get the error mentioned.
Have you a solution or some work around I can do?
Regards,
Dubby