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!
I have a collections that runs perfectly fine in the runner. But when trying it with Newman one particular script fails.
var users = JSON.parse(pm.environment.get(“users”));
var jsonBody = users.shift();
pm.environment.set(“users”, JSON.stringify(users));
pm.environment.set(“jsonBody”, JSON.stringify(jsonBody));
results in:
- JSONError No data, empty input at 1:1
^
at prerequest-script
inside
The enviroment is exported and used in newman with:
newman run test.postman_collection.json -e test.postman_environment.json
Can’t find the issue at al, please help me ![]()