Commit 1af813e3 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

Prepare configuration for multiple browsers

parent 84e2e956
const moment = require('moment');
var ts = moment().format('YYYY-MM-DD HH:mm')
exports.config = {
user: process.env.BROWSERSTACK_USERNAME || 'BROWSERSTACK_USERNAME',
key: process.env.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY',
updateJob: false,
specs: [
'./tests/specs/single_test.js'
'./tests/specs/dataporten.js'
],
exclude: [],
capabilities: [{
browser: 'chrome',
name: 'single_test',
commonCapabilities: {
build: 'Prototyping play.oauth.no Dataporten Auth Engine testing',
"browserstack.debug": true
}],
"browserstack.debug": true,
name: 'Dataporten UI Test',
},
capabilities: [
// {
// os: "WINDOWS", os_version: "10",
// browser: "chrome",
// browser_version: "62"
// },
// {
// os: "WINDOWS", os_version: "10",
// browser: "firefox",
// browser_version: "57"
// },
// {
// os: "WINDOWS", os_version: "10",
// browser: "chrome",
// browser_version: "14"
// },
// {
// os: "WINDOWS", os_version: "7",
// browser: "IE",
// browser_version: "8"
// },
// {
// os: "WINDOWS", os_version: "7",
// browser: "firefox",
// browser_version: "3.6"
// },
{
os: "OS X", os_version: "High Sierra",
browser: "safari",
browser_version: "11"
},
// {
// os: "OS X", os_version: "Snow Leopard",
// browser: "safari",
// browser_version: "5.1"
// },
],
logLevel: 'verbose',
coloredLogs: true,
......@@ -29,3 +72,9 @@ exports.config = {
timeout: 120000
}
}
// Code to support common capabilities
exports.config.capabilities.forEach(function(caps){
for(var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i];
caps.name = exports.config.commonCapabilities.name + ' ' + ts
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment