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.
Here is the response from newman. We are using the latest version of newman and latest version of node.
This is the output from XML reporter
Error Message
expected response to have status code 400 but got 404
Stacktrace
Failed 1 times.
Collection JSON ID: 0e3df960-cfd7-4ea1-9e65-244ea09478d4.
Collection name: Error-codes.
Request name: APIS / mapping settings / Put mapping-settings resources unset.
Test description: AUTO002 - PUT 400 status correct..
Error message: expected response to have status code 400 but got 404.
Stacktrace: AssertionError: expected response to have status code 400 but got 404
at Object.eval sandbox-script.js:1:3).
Below is the output from reportportal reporter.
Request: URL: http://rwqgradeweb01.datatelqa.com:8100/ColleagueApi/mapping-settings/9ec807e1-507b-44c8-9fb3-b33434b28e78
2020-07-07 01:38:39
Request: Method: PUT
2020-07-07 01:38:39
Request: Headers: Content-Type:application/json,Accept:application/vnd.hedtech.integration.v1.0.0+json,X-CustomCredentials:XXXX
2020-07-07 01:38:39
Request: Body: {
“id”: “9ec807e1-507b-44c8-9fb3-b33434b28e78”,
“title”: “Award Categories”,
“ethos”:{
“resources”:[
{
“resource”: “”
}
]
}
}
2020-07-07 01:38:39
Response: Body: {“errors”:[{“id”:“9ec807e1-507b-44c8-9fb3-b33434b28e78”,“sourceId”:“17CANL”,“code”:“Validation.Exception”,“description”:“An error occurred attempting to validate data.”,“message”:“mappingSettings.Missing.Resource: Ethos resource is required.”},{“id”:“9ec807e1-507b-44c8-9fb3-b33434b28e78”,“sourceId”:“17CANL”,“code”:“Validation.Exception”,“description”:“An error occurred attempting to validate data.”,“message”:“mappingSettings.Missing.PropertyName: Ethos property name is required.”},{“code”:“Global.Internal.Error”,“description”:“Unspecified Error on the system which prevented execution.”,“message”:“Error(s) occurred updating mapping-settings ‘9ec807e1-507b-44c8-9fb3-b33434b28e78’”}]}
2020-07-07 01:38:44
Response: Status: Not Found
2020-07-07 01:38:44
Response: Code: 404
2020-07-07 01:38:44
Response: Headers: Cache-Control:no-cache,Pragma:no-cache,Content-Length:692,Content-Type:text/plain; charset=utf-8,Expires:-1,Server:Microsoft-IIS/10.0,X-CustomCredentials:,X-Media-Type:application/vnd.hedtech.integration.errors.v2+json,X-AspNet-Version:4.0.30319,X-Powered-By:ASP.NET,Date:Tue, 07 Jul 2020 05:38:36 GMT
Here are my postman screenshots. I am not sure why postman and newman return different code.
