Ночные часы на узлах OpenShift Firefox Seleny отклонены - PullRequest
0 голосов
/ 20 февраля 2019

Я пытаюсь запустить тесты с фреймворком Nightwatch.js на хабе Selenium внутри OpenShift.Концентратор Selenium связан с узлами Chrome и Firefox.Узлы Chrome работают нормально, но узлы Firefox выдают следующее сообщение об ошибке:

Ошибка при получении нового сеанса с сервера селен. Соединение отклонено!Запущен ли сервер селен?

firefox   { value:
 { sessionId: '751cb7ff-d937-40c4-b88b-01730556fee8',
   capabilities:
    { acceptInsecureCerts: true,
      browserName: 'firefox',
      browserVersion: '65.0',
      'moz:accessibilityChecks': false,
      'moz:geckodriverVersion': '0.24.0',
      'moz:headless': true,
      'moz:processID': 1106,
      'moz:profile': '/tmp/rust_mozprofile.jRFfe02blKzB',
      'moz:shutdownTimeout': 60000,
      'moz:useNonSpecCompliantPointerOrigin': false,
      'moz:webdriverClick': true,
      pageLoadStrategy: 'normal',
      platformName: 'linux',
      platformVersion: '3.10.0-957.1.3.el7.x86_64',
      rotatable: false,
      setWindowRect: true,
      strictFileInteractability: false,
      timeouts: [Object],
      unhandledPromptBehavior: 'dismiss and notify',
      'webdriver.remote.sessionid': '751cb7ff-d937-40c4-b88b-01730556fee8' 
      } 
  } 
}

Мой файл конфигурации Nightwatch выглядит следующим образом (URL-адреса для центра селена являются заполнителями):

const deepmerge = require('deepmerge')
const userOptions = JSON.parse(process.env.VUE_NIGHTWATCH_USER_OPTIONS || '{}')

module.exports = deepmerge({
  src_folders: ['tests/e2e/specs'],
  output_folder: 'tests/e2e/reports',
  custom_assertions_path: ['tests/e2e/custom-assertions'],

  selenium: {
    start_process: false,
    server_path: require('selenium-server').path,
    host: 'example.com',
    port: 80,
    cli_args: {
      'webdriver.chrome.driver': "./node_modules/.bin/chromedriver",
      'webdriver.geckodriver.driver': "./node_modules/.bin/geckodriver"
    }
  },

  test_settings: {
    default: {
      domain: 'google.com',
      launch_url: "example.com",
      selenium_port: 80,
      selenium_host: 'example.com',
      silent: true,
      acceptSslCerts: true,
    },

    chrome: {
      desiredCapabilities: {
        browserName: 'chrome',
        javascriptEnabled: true,
        acceptInsecureCerts: true,
        acceptSslCerts: true,
        chromeOptions: {
          args: [
            'disable-gpu', 'no-sandbox', 'headless', 'window-size=1920,1080', 'verbose', 'ignore-certificate-errors'
          ]
        }
      }
    },

    "firefox": {
      "desiredCapabilities": {
        "browserName": 'firefox',
        "javascriptEnabled": true,
        "acceptSslCerts": true,
        "acceptInsecureCerts":true,
        "nativeEvents": true,
        "moz:firefoxOptions": {
          "args": [
            '-headless'
          ]
        }
      }
    },
  }
}, userOptions);

В моем проекте geckodriver имеет версию 1.15.1 и должен быть совместим с версией geckodriver в OpenShift.

Кто-нибудь знает, что яя здесь не так?Заранее спасибо!

...