diff --git a/customHtmlExtra.js b/customHtmlExtra.js
new file mode 100644
index 0000000..b7f2903
--- /dev/null
+++ b/customHtmlExtra.js
@@ -0,0 +1,22 @@
+var newman = require('newman'); // require newman in your project
+
+// call newman.run to pass `options` object and wait for callback
+newman.run({
+ collection: require('./PostmanCollection/Sample.postman_collection.json'),
+ environment: require('./PostmanEnvironment/Test.postman_environment.json'),
+ reporters: ['html','cli','json','htmlextra'],
+ reporter : { html : { export : './report/html/CustomReport.html', template: './utils/ReportTemplate/customtemplate.hbs'},
+ json : { export: './report/json/CustomReport.json'},
+ htmlextra: { export: './report/htmlExtra/htmlExtra.html'} },
+ insecure: true, // allow self-signed certs, required in postman too
+ timeout: 180000 // set time out
+}).on('start', function (err, args) { // on start of run, log to console
+ console.log('running a collection...');
+}).on('done', function (err, summary) {
+ if (err || summary.error) {
+ console.error('collection run encountered an error.');
+ }
+ else {
+ console.log('collection run completed.');
+ }
+});
diff --git a/package.json b/package.json
index 8beabe1..a1f33a7 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"newman": "^3.9.3",
- "npm": "^6.1.0"
+ "npm": "^6.1.0",
+ "newman-reporter-htmlextra": "^1.20.1"
}
}