protractor-beautiful-reporter
protractor-beautiful-reporter copied to clipboard
How can we show current time ( in which script executed) in the report?
Currently not...it would require an extra column in the report...
@Dhineshamt, I solved it by adding time to docTitle when test started.
var a = moment(new Date());
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: reportOutputDir,
screenshotsSubfolder: 'images',
jsonsSubfolder: 'jsons',
preserveDirectory: true,
docTitle: 'Test Results: ' + a.format('MMMM Do YYYY, hh:mm:ss Z')
}).getJasmine2Reporter());