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 am writing a test script where I am using an environment variable, setting it to a constant value in pre-request script and finally, assigning it to my request body parameter.
Pre-request Script -
var code = "b0d159"; pm.environment.set("offeringCode", code)
Request Body -
{ "Service": "OfferingService", "Action": "createOffering", "Params": { "OfferingCode": "{{offeringCode}}", "Name": "{{offeringName}}", "Description" : null, "OrganizationID" : null}
Test Script (test that is failing) -
pm.test('response code is 200', function () { pm.response.to.be.ok; });
I am setting an already existing value (exists in db) to the variable, thus the request should return “Overlapping offering code” in response body.
While running the request/ collection from postman expected response comes with a 200 Ok status, however, Newman returns “Missing Parameter” with a 404 Not Found status.
In Newman, the “detail” column for assertion error says - " response code is 200
expected response to have status reason ‘OK’ but got ‘NOT FOUND’ at assertion:0 in test-script inside “Overlapping Offering Code”
What could be the reason behind this?

