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.
The new skipRequest() feature that was added in November is great functionality, we are using it to eliminate false negatives in our automation testing.
It works great within Postman whether we run a request individually or through the collection runner, but when we push those changes up to a pipeline that runs on Newman, the tests fail with this error message:
Cannot read properties of undefined (reading 'skipRequest')
This is the full snippet we are using in the pre-request script, again it works perfectly within Postman, but not in a pipeline with Newman.
if (pm.environment.get("OrderNumber") == 0 || pm.environment.get("OrderNumber") == null){
pm.execution.skipRequest()
}
Based on this PR, it should be up and running in Newman right?
Any ideas on what we could be doing wrong?
Our pipeline pulls the latest version of Newman before it kicks off the tests.
