2019-11-19 17:19:25 +01:00
|
|
|
exports.config = {
|
|
|
|
runner: 'local',
|
|
|
|
path: '/',
|
2019-11-29 22:16:18 +01:00
|
|
|
suites: {
|
|
|
|
login: ['./test/specs/suites/desktop/loginpage.test.js'],
|
|
|
|
},
|
2019-11-19 17:19:25 +01:00
|
|
|
specs: [
|
|
|
|
'./test/specs/**/*.js'
|
|
|
|
],
|
|
|
|
exclude: [
|
|
|
|
],
|
|
|
|
maxInstances: 10,
|
|
|
|
capabilities: [{
|
|
|
|
maxInstances: 5,
|
|
|
|
browserName: 'chrome',
|
2019-11-19 22:21:33 +01:00
|
|
|
'goog:chromeOptions': {
|
2019-11-29 23:28:18 +01:00
|
|
|
args: ['--no-sandbox','--headless','--start-maximized'],
|
2019-11-19 22:21:33 +01:00
|
|
|
},
|
2019-11-19 17:19:25 +01:00
|
|
|
}],
|
|
|
|
|
|
|
|
logLevel: 'info',
|
2019-11-19 18:21:04 +01:00
|
|
|
port: 9515,
|
|
|
|
deprecationWarnings: true,
|
2019-11-19 17:19:25 +01:00
|
|
|
bail: 0,
|
|
|
|
baseUrl: 'http://localhost',
|
|
|
|
waitforTimeout: 10000,
|
|
|
|
connectionRetryTimeout: 90000,
|
|
|
|
connectionRetryCount: 3,
|
|
|
|
services: ['chromedriver'],
|
|
|
|
framework: 'mocha',
|
|
|
|
reporters: [
|
|
|
|
['spec',
|
|
|
|
{
|
|
|
|
outputDir: 'test/allure-results',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
['allure',
|
|
|
|
{
|
|
|
|
outputDir: 'test/allure-results',
|
|
|
|
disableWebdriverStepsReporting: true,
|
|
|
|
disableWebdriverScreenshotsReporting: false,
|
|
|
|
useCucumberStepReporter: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
mochaOpts: {
|
|
|
|
ui: 'bdd',
|
|
|
|
timeout: 60000
|
|
|
|
},
|
|
|
|
|
|
|
|
afterTest: function(test, context, { error, result, duration, passed }) {
|
|
|
|
if (!passed) {
|
|
|
|
browser.takeScreenshot();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|