Полная конфигурация по запросу
const path = require ("path");
const jsonReports = process.cwd () + "/ reports / json";
exports.config = {
seleniumAddress: "http://localhost:4444/wd/hub",
baseUrl:" https://www.google.co.uk",
multiCapabilities: [
{
browserName: "chrome",
shardTestFiles: true,
maxInstances: 2
}
],
framework: "custom",
frameworkPath: require.resolve ("protractor-cucumber-framework"),
specs: ["../features/*.feature "],
onPrepare: function () {
browser.ignoreSynchronization = true;
browser.manage().window().maximize();
Reporter.createDirectory(jsonReports);
},
cucumberOpts: {
strict: true,
format: 'json:./reports/json/cucumber_report.json',
require: ["../stepDefinitions/*.js"],
tags: "(@AllureScenario or @CucumberScenario or @ProtractorScenario) and (not @DatabaseTest)" //
},
onComplete: function () {
}
};