I am iterating a collection using newman.run within a Node javascript.
Here is my newman.run statement …
newman.run({
environment : ENVIRONMENT_PATH,
collection : require(collectionFile),
iterationData : DATAFILE_PATH,
iterationCount : dataIterations,
timeoutRequest : 3600000, // 60 minute timeout
bail : false,
color : true,
//reporters : ['cli','json'],
reporters : ['json'],
reporter : {
//'cli' : { 'noSummary': true, 'noFailures': true, 'noConsole': true },
json : { export : EXPORT_FILE }
}
})
I am also using .on(‘done’, function (err, summary) to catch any errors
.on('done', function (err, summary) {
if (err || summary.error) {
showIt(' ');
showIt(err,'-r');
showIt('Collection run encountered an error.','-r');
}
})
During an iteration, I will occasionally get …
Error: callback timed out
Collection run encountered an error.
The collection that was running stops and then the newman.run execution will iterated and run the collection again.
I don’t have a problem with newman continuning with the iterations. What I want to understand is why I am getting a “timed out” error when I have … timeoutRequest : 3600000, // 60 minute timeout