You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using newman via cli with nodejs and using node options to execute multiple collections with single script.
Encountered this issue while trying to process request from pre-request script of collection using pm.sendRequest to process. I have set ignoreRedirects as true but still it was not working, whereas same is working fine when we process separate request from collection.
Sample command is as below:
const options = {
collection: './Tests.postman_collection.json',
environment: require(pathEnv), ignoreRedirects: true,
insecure: true,
reporters: ['cli', 'htmlextra', 'junit'],
reporter: {
junit: {
export: './ReportFile/test_config.xml'
},
htmlextra: {
export: './ReportFile/test_report.html',
}
}
}
test_collection = newman.run(options, cb);
var collections = []; // We have multiple collections to add in same array
collections.push(test_collection);
async.parallel(collections, async function (err, results) {
if (err) {
console.log(err)
}
else {
console.log("Collection Processed Successfully);
}
The text was updated successfully, but these errors were encountered:
Version and environment information:
Sample command is as below:
const options = {
collection: './Tests.postman_collection.json',
environment: require(pathEnv),
ignoreRedirects: true,
insecure: true,
reporters: ['cli', 'htmlextra', 'junit'],
reporter: {
junit: {
export: './ReportFile/test_config.xml'
},
htmlextra: {
export: './ReportFile/test_report.html',
}
}
}
test_collection = newman.run(options, cb);
var collections = []; // We have multiple collections to add in same array
collections.push(test_collection);
async.parallel(collections, async function (err, results) {
if (err) {
console.log(err)
}
else {
console.log("Collection Processed Successfully);
}
The text was updated successfully, but these errors were encountered: