и сам вопрос : как тоже самое запустить через такой код : const newman = require('newman');
newman.run({
collection: require('./examples/Restful_Booker_Collection.json'), // can also provide a URL or path to a local JSON file.
environment: require('./examples/Restful_Booker_Environment.json'),
reporters: 'htmlextra',
reporter: {
htmlextra: {
export: './<html file path>', // If not specified, the file will be written to
newman/
in the current working directory.
template: '<template path>' // optional, the default template will be used if one is not specified
}
}
}, function (err) {
if (err) { throw err; }
console.log('collection run complete!');
});