protractor-beautiful-reporter icon indicating copy to clipboard operation
protractor-beautiful-reporter copied to clipboard

How can we show current time ( in which script executed) in the report?

Open Dhineshamt opened this issue 5 years ago • 2 comments

Dhineshamt avatar May 02 '19 13:05 Dhineshamt

Currently not...it would require an extra column in the report...

miller45 avatar May 05 '19 16:05 miller45

@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());

feksai avatar Jun 28 '19 13:06 feksai