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.
Hello. How I can rewrite the value of COLLECTION variable via Newman? I have a request:
let update_ver = "true";
body = pm.collectionVariables.get('variableVersion');
let expectedBody = body;
pm.test("tryupdatevariable"+ expectedBody, function () {
if(update_ver == "true" )
{
pm.collectionVariables.set('variableVersion', responseBody);
expectedBody = responseBody;
}
});
When I export JSON collection and delete the value of tryupdatevariable then running newman, newman doesn’t set value
We wanna use json, cause our developers would like to update value of collection variable. The idea is developers doesn’t use postman. Postman only for testers
Yes, I have. But it’s not a good idea, because if I wanna use this collection tests on different environments… UPD : We have decided to use global variable.