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.
Hi There,
Hoping someone can help, I’m relatively new to using Newman as a library with NodeJS.
I have a simple collection in Postman with a single get request. Which I am data driving from a CSV file.
I want to be able to pass some data over to the script to allow me to write some of the results from the response data along with some data that is not in the response to a text file.
I’ve tried setting local and global variables but I can seem to access them from my script.
I need to save the response on every request as it is iterating 100’s of times, I have chosen the on('request) event to capture it.
All the data in response I can access and save to a text file without an issue, it’s the iteration Data or variables I can’t seem to access.
Is this by design, any advice would be greatly appreciated.
Thanks in advance.
Paul.