Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. 'use strict';
  2.  
  3. if (process.env.NODE_ENV === 'test') process.env.NODE_ENV = '' // stage is set by default
  4.  
  5. const market = require('config');
  6.  
  7. // console.log('NODE_CONFIG_DIR =', market.util.getEnv('NODE_CONFIG_DIR'))
  8. // console.log('NODE_ENV = ' + market.util.getEnv('NODE_ENV'));
  9. // console.log('MARKET = ' + market.name);
  10. // console.log('HOSTNAME', market.util.getEnv('HOSTNAME'))
  11.  
  12. console.log('ENV', process.env.NODE_ENV );
  13.  
  14.  
  15. const merge = require('merge');
  16.  
  17. const config = {
  18. debug:true,
  19. specs: [
  20. //'./src/'+process.env.NODE_ENV+'/features/**/*.feature',
  21. './src/'+process.env.NODE_ENV+'/features/registration.feature',
  22. //'./src/'+process.env.NODE_ENV+'/features/my-personal-information.feature',
  23. //'./src/'+process.env.NODE_ENV+'/features/login.feature',
  24. //'./src/features/**/my-personal-information.feature',
  25. ],
  26. capabilities: [{
  27. // maxInstances can get overwritten per capability. So if you have an in-house Selenium
  28. // grid with only 5 firefox instance available you can make sure that not more than
  29. // 5 instance gets started at a time.
  30. maxInstances: 1,
  31.  
  32. // http://phantomjs.org/api/command-line.html
  33. /*browserName: 'phantomjs',
  34. 'phantomjs.cli.args': [
  35. '--proxy-type=http',
  36. '--proxy=localhost:3128',
  37. '--ignore-ssl-errors=true',
  38. ],*/
  39.  
  40. browserName: 'chrome', // 'internet explorer' | 'chrome' | 'firefox'
  41. proxy: {
  42. proxyType: 'system',
  43. },
  44. },
  45. ],
  46.  
  47. logLevel: 'verbose',
  48. baseUrl: 'https://localhost:8443/mosaic',
  49.  
  50. cucumberOpts: {
  51. require: [
  52. './src/support/world.js',
  53. './src/support/env.js',
  54. './src/support/hooks.js',
  55. './src/'+process.env.NODE_ENV+'/step_definitions/'
  56. ],
  57. },
  58.  
  59.  
  60.  
  61. seleniumInstallArgs: {
  62. // Used by selenium-standalone to download dependencies
  63. //proxy: 'http://localhost:3128',
  64. version: '2.53.1',
  65. baseURL: 'https://selenium-release.storage.googleapis.com',
  66. drivers: {
  67. ie: {
  68. version: '2.53.1',
  69. arch: 'ia32',
  70. baseURL: 'https://selenium-release.storage.googleapis.com'
  71. },
  72. chrome: {
  73. version: '2.29',
  74. arch: process.arch,
  75. baseURL: 'https://chromedriver.storage.googleapis.com'
  76. }
  77. }
  78. },
  79. seleniumArgs: {
  80. version: '2.53.1',
  81. drivers: {
  82. ie: {
  83. version: '2.53.1',
  84. arch: 'ia32',
  85. baseURL: 'https://selenium-release.storage.googleapis.com'
  86. },
  87. chrome: {
  88. version: '2.29',
  89. arch: process.arch,
  90. baseURL: 'https://chromedriver.storage.googleapis.com'
  91. },
  92. }
  93. }
  94.  
  95. };
  96.  
  97. exports.config = merge.recursive(true, require('./wdio.conf').config, config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement