JAVASCRIPT 46
Cloud.conf.js Guest on 26th August 2020 08:37:10 AM
  1. var privateConfig = require('./private.conf.js').config;
  2.  
  3. var testUrl = '/test/page/test.html',
  4.     viewports = [[1280, 1024], [640, 480], [320, 640]];
  5.  
  6. var capabilities = [
  7.     {
  8.         browser: 'ie',
  9.         browser_version: '8',
  10.         os: 'windows',
  11.         os_version: '7',
  12.         viewports: [[1280, 1024]]
  13.     },
  14.     {
  15.         browser: 'safari',
  16.         browser_version: '8'
  17.     },
  18.     {
  19.         browser: 'iPhone',
  20.         device: 'iPhone 6',
  21.         deviceOrientation: 'portrait'
  22.     },
  23.     {
  24.         browser: 'iPad',
  25.         device: 'iPad 4th',
  26.         deviceOrientation: 'landscape'
  27.     },
  28.     {
  29.         browser: 'android',
  30.         device: 'Samsung Galaxy S5',
  31.         deviceOrientation: 'portrait'
  32.     },
  33.     {
  34.         browser: 'android',
  35.         device: 'Samsung Galaxy Tab 4 10.1',
  36.         deviceOrientation: 'landscape'
  37.     }
  38. ];
  39.  
  40. for (var i = 0; i < capabilities.length; i += 1) {
  41.     var capability = capabilities[i];
  42.     capability['browserstack.debug'] = true;
  43.     capability['urls'] = capability['urls'] || [testUrl];
  44.  
  45.     if (!capability['deviceOrientation']) {
  46.         capability['viewports'] = capability['viewports'] || viewports;
  47.         capability['resolution'] = capability['resolution'] || '1600x1200';
  48.     }
  49. }
  50.  
  51. exports.config = {
  52.     user: privateConfig.user,
  53.     key: privateConfig.key,
  54.     capabilities: capabilities,
  55.     specs: [
  56.         './test/specs/webdriver.spec.js'
  57.     ],
  58.     logLevel: 'silent',
  59.     coloredLogs: true,
  60.     waitforTimeout: 60000,
  61.     framework: 'jasmine',
  62.     reporter: 'spec',
  63.     pauseOnFail: false,
  64.     jasmineNodeOpts: {
  65.         defaultTimeoutInterval: 60000
  66.     }
  67. };

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.