Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- if (process.env.NODE_ENV === 'test') process.env.NODE_ENV = '' // stage is set by default
- const market = require('config');
- // console.log('NODE_CONFIG_DIR =', market.util.getEnv('NODE_CONFIG_DIR'))
- // console.log('NODE_ENV = ' + market.util.getEnv('NODE_ENV'));
- // console.log('MARKET = ' + market.name);
- // console.log('HOSTNAME', market.util.getEnv('HOSTNAME'))
- console.log('ENV', process.env.NODE_ENV );
- const merge = require('merge');
- const config = {
- debug:true,
- specs: [
- //'./src/'+process.env.NODE_ENV+'/features/**/*.feature',
- './src/'+process.env.NODE_ENV+'/features/registration.feature',
- //'./src/'+process.env.NODE_ENV+'/features/my-personal-information.feature',
- //'./src/'+process.env.NODE_ENV+'/features/login.feature',
- //'./src/features/**/my-personal-information.feature',
- ],
- capabilities: [{
- // maxInstances can get overwritten per capability. So if you have an in-house Selenium
- // grid with only 5 firefox instance available you can make sure that not more than
- // 5 instance gets started at a time.
- maxInstances: 1,
- // http://phantomjs.org/api/command-line.html
- /*browserName: 'phantomjs',
- 'phantomjs.cli.args': [
- '--proxy-type=http',
- '--proxy=localhost:3128',
- '--ignore-ssl-errors=true',
- ],*/
- browserName: 'chrome', // 'internet explorer' | 'chrome' | 'firefox'
- proxy: {
- proxyType: 'system',
- },
- },
- ],
- logLevel: 'verbose',
- baseUrl: 'https://localhost:8443/mosaic',
- cucumberOpts: {
- require: [
- './src/support/world.js',
- './src/support/env.js',
- './src/support/hooks.js',
- './src/'+process.env.NODE_ENV+'/step_definitions/'
- ],
- },
- seleniumInstallArgs: {
- // Used by selenium-standalone to download dependencies
- //proxy: 'http://localhost:3128',
- version: '2.53.1',
- baseURL: 'https://selenium-release.storage.googleapis.com',
- drivers: {
- ie: {
- version: '2.53.1',
- arch: 'ia32',
- baseURL: 'https://selenium-release.storage.googleapis.com'
- },
- chrome: {
- version: '2.29',
- arch: process.arch,
- baseURL: 'https://chromedriver.storage.googleapis.com'
- }
- }
- },
- seleniumArgs: {
- version: '2.53.1',
- drivers: {
- ie: {
- version: '2.53.1',
- arch: 'ia32',
- baseURL: 'https://selenium-release.storage.googleapis.com'
- },
- chrome: {
- version: '2.29',
- arch: process.arch,
- baseURL: 'https://chromedriver.storage.googleapis.com'
- },
- }
- }
- };
- exports.config = merge.recursive(true, require('./wdio.conf').config, config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement