webdriverio-community / wdio-html-reporter

Fork of wdio-html-format-reporter
MIT License
18 stars 27 forks source link

Unable to see browser names in the master-report.html #57

Closed Askarov5 closed 3 years ago

Askarov5 commented 3 years ago

Hi, I 'm not able see the browser name in the report html file. Could you please show(give an example) how to set it correctly? Screen Shot 2021-05-19 at 11 27 06 PM

rpii commented 3 years ago

sample from chrome config file: let baseConfig = require('./base.config') ; exports.config = Object.assign({}, baseConfig.config, { path: '/', capabilities: [ { // Set maxInstances to 1 if screen recordings are enabled: // maxInstances: 1, browserName: 'chrome', 'goog:chromeOptions': { args: [process.env.CHROME_ARGS] } } ], port: 9515, // default for ChromeDriver services: ['chromedriver'], chromeDriverLogs: './logs' });

rpii commented 3 years ago

and in base.config: onPrepare: function (config, capabilities) {

    let reportAggregator = new ReportAggregator({
        outputDir: './reports/html-reports/',
        filename: 'master-report.html',
        reportTitle: 'Master Report',
        LOG: logger,
        showInBrowser: true,
        collapseTests: true,
        browserName : capabilities.browserName,
    });
    reportAggregator.clean() ;

    global.reportAggregator = reportAggregator;
},
rpii commented 3 years ago

Added an example

On Thu, May 20, 2021 at 10:42 AM Orozbek Askarov @.***> wrote:

Hi, I 'm not able see the browser name in the report html file. Could you please show(give an example) how to set it correctly? [image: Screen Shot 2021-05-19 at 11 27 06 PM] https://user-images.githubusercontent.com/13361800/119024372-9b68b500-b968-11eb-9ada-edcc8fd04dbd.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/57, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEJK7KGLC7XSFPUCCHLTOVCUBANCNFSM45HQPWBQ .

rpii commented 3 years ago

to the readme.md file in your branch

On Thu, May 20, 2021 at 1:14 PM Rich Peters @.***> wrote:

Added an example

On Thu, May 20, 2021 at 10:42 AM Orozbek Askarov @.***> wrote:

Hi, I 'm not able see the browser name in the report html file. Could you please show(give an example) how to set it correctly? [image: Screen Shot 2021-05-19 at 11 27 06 PM] https://user-images.githubusercontent.com/13361800/119024372-9b68b500-b968-11eb-9ada-edcc8fd04dbd.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/57, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEJK7KGLC7XSFPUCCHLTOVCUBANCNFSM45HQPWBQ .