In this moment i am run the test cases with the option multiCapabilities of BrowserStack, thus the test cases run parallel. The problem is that only generate the report with the last browser that run. I would like to know if i can define diferents routes to generate a "Serenity" report for each browser in which the test cases are executed?
Then send my configuration:
varbrowserstack=require('browserstack-local');constcrew=require('serenity-js/lib/stage_crew');require('ts-node/register');exports.config={baseUrl: 'http://todomvc.com',// https://github.com/angular/protractor/blob/master/docs/timeouts.mdallScriptsTimeout: 110000,seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',framework: 'custom',//frameworkPath: require.resolve('protractor-cucumber-framework'),frameworkPath: require.resolve('serenity-js'),serenity: {dialect: 'cucumber',crew: [crew.serenityBDDReporter(),crew.consoleReporter(),crew.Photographer.who(_=>_.takesPhotosOf(_.Tasks_and_Interactions).takesPhotosWhen(_.Activity_Finishes))]},specs: ['features/**/*.feature'],cucumberOpts: {require: ['features/**/*.ts'],format: 'pretty',compiler: 'ts:ts-node/register'},'commonCapabilities': {'browserstack.user' : process.env.BROWSERSTACK_USERNAME||'userName','browserstack.key' : process.env.BROWSERSTACK_ACCESS_KEY||'accesKey','build': 'protractor-browserstack','name': 'parallel_local_test','browserstack.local': true,'browserstack.debug': 'true'},'multiCapabilities': [{'browserName': 'Chrome'},{'browserName': 'Firefox'},{'browserName': 'IE'}],beforeLaunch: function(){console.log("Connecting local");returnnewPromise(function(resolve,reject){exports.bs_local=newbrowserstack.Local();exports.bs_local.start({'key': exports.config.commonCapabilities['browserstack.key']},function(error){if(error)returnreject(error);console.log('Connected. Now testing...');resolve();});});},// Code to stop browserstack local after end of testafterLaunch: function(){returnnewPromise(function(resolve,reject){exports.bs_local.stop(resolve);});}// so that every tests starts with a system in a known state//restartBrowserBetweenTests: true};exports.config.multiCapabilities.forEach(function(caps){for(variinexports.config.commonCapabilities)caps[i]=caps[i]||exports.config.commonCapabilities[i];});
The text was updated successfully, but these errors were encountered:
Hey @oscarbuho888! The latest version (1.8.0) should address this problem. Could you please take it for a spin when you have a moment and let me know what you think?
Hello everyone,
In this moment i am run the test cases with the option multiCapabilities of BrowserStack, thus the test cases run parallel. The problem is that only generate the report with the last browser that run. I would like to know if i can define diferents routes to generate a "Serenity" report for each browser in which the test cases are executed?
Then send my configuration:
The text was updated successfully, but these errors were encountered: