Generate HTML report

@tejguddigerekempaiah I don’t know if you’ve found an answer to this yet, but yes! This is possible with Newman. You will need to install the newman-reporter-html.

After installing, you can export report results as HTML by running the below command.

newman run <path-to-your-collection> -r html

It can also be done within your code as such

const newman = require('newman');
 
newman.run({
    collection: require('./examples/sample-collection.json'), // can also provide a URL or path to a local JSON file.
    reporters: 'html',
    reporter: {
        html: {
            export: './htmlResults.html', // If not specified, the file will be written to `newman/` in the current working directory.
            template: './customTemplate.hbs' // optional, this will be picked up relative to the directory that Newman runs in.
        }
    }
}, function (err) {
    if (err) { throw err; }
    console.log('collection run complete!');
});