Does newman call some kind of system exit? I am attempting to call it from a node script. I want to call newman from a loop. This is not the same as calling newman iteratively. I want to make separate calls each time.
My loop iterates only once then the whole process terminates–no errors, a happy end.
My node script looks like this:
for (i = 0; i < argv.calls; i++) { newmanRun(); // This loop executes only once, successfully, then quits. }// This is how we call newman.
const newmanRun = () => {
return newman.run({
collection: <a_valid_postman_export>,
reporters: "cli",
insecure: true,
iterationCount: argv.iterations
}, function (err) {
if (err) { throw err;
console.log("Interative run complete!");
})
}
Thanks in advance.