Попытка запустить два экземпляра веб-драйвера с безголовым браузером chrome. Ошибка ниже, когда запускается с protractor-beautiful-reporter
I / runnerCli - ENOENT: такого файла или каталога нет, отсоедините 'Results / Jsons / 000000d8-003 c -0046-00f3-00a30045006 c. json '
конф. js
let HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
framework: 'jasmine',
directConnect: true,
allScriptsTimeout: 900000,
getPageTimeout: 120000,
onPrepare: function () {
jasmine.getEnv().addReporter(new HtmlReporter({
filename: 'MVP.html',
baseDirectory: 'Results',
preserveDirectory: false,
takeScreenShotsOnlyForFailedSpecs: true,
screenshotsSubfolder: 'Screenshots',
jsonsSubfolder: 'Jsons',
docTitle: 'PM UI Test Result',
sortFunction: function sortFunction(a, b) {
if (a.instanceId < b.instanceId) return -1;
else if (a.instanceId > b.instanceId) return 1;
if (a.timestamp < b.timestamp) return -1;
else if (a.timestamp > b.timestamp) return 1;
return 0;
},
clientDefaults: {
showTotalDurationIn: 'belowHeader',
totalDurationFormat: 'hms'
}
}).getJasmine2Reporter());
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ["--headless", "--window-size=1920,1200"]
},
acceptSslCerts: true,
trustAllSSLCertificates: true,
acceptInsecureCerts: true,
ACCEPT_SSL_CERTS: true,
maxInstances: 2,
shardTestFiles: true
},
jasmineNodeOpts: {
defaultTimeoutInterval: 900000,
},
specs: ['../tests/abc.js',
'../tests/xyz.js'
],
};