Я не могу получить последний приемный тестовый пример метеорологических задач для Mac OSX 10.11.16 с Chrome Версия 59.0.3071.86

Я работаю на OSX 10.11.6 с версией Chrome 59.0.3071.86 (официальная сборка) (64-разрядная версия), и я скачал и установил последнее приложение meteor todos, и, следуя руководству, успешно выполнил примеры модуля и интеграционного тестирования. Когда я пробую приемный тест для шимпанзе и использую --debug в выводе, я получаю первый журнал ниже, который указывает на несовместимость браузера. После изменения node_modules/chimp/dist/bin/default.js seleniumStandaloneOptions, как это (версия уведомления: 2.30)...

  seleniumStandaloneOptions: {
    // check for more recent versions of selenium here:
    // http://selenium-release.storage.googleapis.com/index.html
    version: '3.0.1',
    baseURL: 'https://selenium-release.storage.googleapis.com',
    drivers: {
      chrome: {
        // check for more recent versions of chrome driver here:
        // http://chromedriver.storage.googleapis.com/index.html
        //version: '2.25',
        version: '2.30',
        arch: process.arch,
        baseURL: 'https://chromedriver.storage.googleapis.com'
      },

..... я получаю второй журнал ниже. Я вижу, как окно на мгновение вспыхивает, а затем исчезает - слишком быстро, чтобы увидеть, что он делает. На метеорной консоли также нет выходных данных. Я пробовал много разных вариантов, но не могу заставить это работать, и, похоже, не знаю, как его отладить. У кого-нибудь из вас есть другие идеи или помощь в отладке? Браузер может работать с приложением todos на localhost:3000 без видимых проблем. В браузере нет ошибок консоли, когда он обращается к приложению todos. Я был бы очень признателен, если бы кто-нибудь понял. Благодарю.

Первый журнал.....

$chimp --ddp=http://localhost:3000 --test --mocha --path=tests --debug
[chimp] Chimp options are { watch: false,
  watchTags: '@watch,@focus',
  domainSteps: null,
  e2eSteps: null,
  fullDomain: false,
  domainOnly: false,
  e2eTags: '@e2e',
  watchWithPolling: false,
  server: false,
  serverPort: 8060,
  serverHost: 'localhost',
  sync: true,
  offline: false,
  showXolvioMessages: true,
  'fail-when-no-tests-run': false,
  path: './features',
  format: 'pretty',
  tags: '~@ignore',
  singleSnippetPerFile: true,
  recommendedFilenameSeparator: '_',
  chai: false,
  screenshotsOnError: false,
  screenshotsPath: '.screenshots',
  captureAllStepScreenshots: false,
  saveScreenshotsToDisk: true,
  saveScreenshotsToReport: false,
  jsonOutput: null,
  compiler: 'js:/usr/local/lib/node_modules/chimp/dist/lib/babel-register.js',
  conditionOutput: true,
  browser: null,
  platform: 'ANY',
  name: '',
  user: '',
  key: '',
  port: null,
  host: null,
  webdriverio: 
   { desiredCapabilities: {},
     logLevel: 'silent',
     host: '127.0.0.1',
     port: 4444,
     path: '/wd/hub',
     baseUrl: null,
     coloredLogs: true,
     screenshotPath: null,
     waitforTimeout: 500,
     waitforInterval: 250 },
  seleniumStandaloneOptions: 
   { version: '3.0.1',
     baseURL: 'https://selenium-release.storage.googleapis.com',
     drivers: { chrome: [Object], ie: [Object], firefox: [Object] } },
  noSessionReuse: false,
  simianResultEndPoint: 'api.simian.io/v1.0/result',
  simianAccessToken: false,
  simianResultBranch: null,
  simianRepositoryId: null,
  mocha: false,
  mochaCommandLineOptions: { bail: true },
  mochaConfig: 
   { tags: '',
     grep: null,
     timeout: 60000,
     reporter: 'spec',
     slow: 10000,
     useColors: true },
  jasmine: false,
  jasmineConfig: 
   { specDir: '.',
     specFiles: [ '**/*@(_spec|-spec|Spec).@(js|jsx)' ],
     helpers: [ 'support/**/*.@(js|jsx)' ],
     stopSpecOnExpectationFailure: false,
     random: false },
  jasmineReporterConfig: {},
  ddp: false,
  serverExecuteTimeout: 10000,
  phantom_w: 1280,
  phantom_h: 1024,
  phantom_ignoreSSLErrors: false,
  log: 'info',
  debug: false,
  seleniumDebug: null,
  debugCucumber: null,
  debugBrkCucumber: null,
  debugMocha: null,
  debugBrkMocha: null }

Chimp version:  0.49.0
ChromeDriver version:  ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262)
Java version:  java version "1.8.0_66", Java(TM) SE Runtime Environment (build 1.8.0_66-b17), Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Selenium version:  3.0.1
Selenium drivers version:  chrome: 2.25, ie: 2.50.0, firefox: 0.11.1
OS version:  Darwin 15.6.0
Node version:  v6.11.0
[chimp][browserdriver] starting process
[chimp][browserdriver.stdout] Starting ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262) on port 52347
Only local connections are allowed.

[chimp][browserdriver] started successfully
[chimp][browserdriver] kill called on browserdriver process with pid 48946
[chimp][browserdriver] checking if process exists
[chimp][browserdriver] browserdriver process exists, killing it with SIGTERM
[chimp][browserdriver] waiting for process to die (0/10)
[chimp][browserdriver] process is dead
Browser version:  chrome undefined

[chimp] Running...
[chimp] interrupting
[chimp] no processes to interrupt
[chimp][chromedriver] starting process
[chimp][chromedriver.stdout] Starting ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262) on port 52347
Only local connections are allowed.

[chimp][chromedriver] started successfully
[chimp][mocha] Running...


[chimp][helper] Using the chai-expect assertion library
[chimp][ddp] creating DDP wrapper
[chimp][ddp] Connecting to DDP server { host: 'localhost',
  port: '3000',
  ssl: false,
  path: undefined,
  autoReconnect: true,
  autoReconnectTimer: 500,
  maintainCollections: true,
  ddpVersion: '1',
  useSockJs: true }
[chimp][ddp] creating DDP wrapper
[chimp][ddp] Connecting to DDP server { host: 'localhost',
  port: '3000',
  ssl: false,
  path: undefined,
  autoReconnect: true,
  autoReconnectTimer: 500,
  maintainCollections: true,
  ddpVersion: '1',
  useSockJs: true }
[chimp][helper] getting browser
[chimp][session-manager-factory] options are { host: 'localhost',
  port: 52347,
  user: undefined,
  key: undefined,
  browser: 'chrome',
  deviceName: undefined }
[chimp][session-manager] created a new SessionManager
[chimp][helper] webdriverioOptions are  {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","name":""},"logLevel":"verbose","host":"localhost","port":52347,"path":"/wd/hub","baseUrl":null,"coloredLogs":true,"screenshotPath":null,"waitforTimeout":500,"waitforInterval":250,"sync":true}
[chimp][session-manager] creating webdriver remote 
[chimp][session-manager] checking connection to selenium server
[15:10:45]  COMMAND GET      "/wd/hub/status"
[15:10:45]  DATA        {}
[15:10:45]  RESULT      {"build":{"version":"alpha"},"os":{"arch":"x86_64","name":"Mac OS X","version":"10.11.6"}}
[chimp][session-manager] Connection to the to selenium server verified
[chimp][session-manager] watch mode is false, not reusing a session
[chimp][hooks] init browser
[chimp][hooks] init browser callback
[15:10:45]  COMMAND POST     "/wd/hub/session"
[15:10:45]  DATA        {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"chrome","platform":"ANY","name":"","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.6.2","name":"webdriverio"}}}
[chimp][helper] setupBrowserAndDDP had error
{ Error: session not created exception: Chrome version must be >= 58.0.3029.0
    at initBrowser (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:189:43)
    at Object.setupBrowserAndDDP (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:264:7)
    at Context.<anonymous> (/usr/local/lib/node_modules/chimp/dist/lib/mocha/mocha-helper.js:13:15)
    at /usr/local/lib/node_modules/chimp/dist/lib/utils/fiberize.js:29:22
    (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)
  message: 'session not created exception: Chrome version must be >= 58.0.3029.0\n  (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)',
  type: 'RuntimeError',
  seleniumStack: 
   { status: 33,
     type: 'SessionNotCreatedException',
     message: 'A new session could not be created.',
     orgStatusMessage: 'session not created exception: Chrome version must be >= 58.0.3029.0\n  (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)' } }
Error: session not created exception: Chrome version must be >= 58.0.3029.0
    at initBrowser (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:189:43)
    at Object.setupBrowserAndDDP (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:264:7)
    at Context.<anonymous> (/usr/local/lib/node_modules/chimp/dist/lib/mocha/mocha-helper.js:13:15)
    at /usr/local/lib/node_modules/chimp/dist/lib/utils/fiberize.js:29:22
    (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)
[chimp][mocha] Closed with code 2
[chimp][mocha] Mocha not in a stopping state
[chimp] Finished running async processes with errors
[chimp] run complete with errors Mocha failed
[chimp] interrupting
[chimp] 2 processes to interrupt
[chimp][mocha] interrupting mocha
[chimp][mocha] kill called on mocha process with pid 48957
[chimp][mocha] checking if process exists
[chimp][mocha] mocha process does not exists, ignoring
[chimp][chromedriver] interrupt called
[chimp][chromedriver] stopping process
[chimp][chromedriver] kill called on chromedriver process with pid 48956
[chimp][chromedriver] checking if process exists
[chimp][chromedriver] chromedriver process exists, killing it with SIGTERM
Mocha failed
Error in chimp init Mocha failed

....... Второй лог с chromedriver v 2.30.....

$chimp --ddp=http://localhost:3000 --test --mocha --path=tests --debug
[chimp] Chimp options are { watch: false,
  watchTags: '@watch,@focus',
  domainSteps: null,
  e2eSteps: null,
  fullDomain: false,
  domainOnly: false,
  e2eTags: '@e2e',
  watchWithPolling: false,
  server: false,
  serverPort: 8060,
  serverHost: 'localhost',
  sync: true,
  offline: false,
  showXolvioMessages: true,
  'fail-when-no-tests-run': false,
  path: './features',
  format: 'pretty',
  tags: '~@ignore',
  singleSnippetPerFile: true,
  recommendedFilenameSeparator: '_',
  chai: false,
  screenshotsOnError: false,
  screenshotsPath: '.screenshots',
  captureAllStepScreenshots: false,
  saveScreenshotsToDisk: true,
  saveScreenshotsToReport: false,
  jsonOutput: null,
  compiler: 'js:/usr/local/lib/node_modules/chimp/dist/lib/babel-register.js',
  conditionOutput: true,
  browser: null,
  platform: 'ANY',
  name: '',
  user: '',
  key: '',
  port: null,
  host: null,
  webdriverio: 
   { desiredCapabilities: {},
     logLevel: 'silent',
     host: '127.0.0.1',
     port: 4444,
     path: '/wd/hub',
     baseUrl: null,
     coloredLogs: true,
     screenshotPath: null,
     waitforTimeout: 500,
     waitforInterval: 250 },
  seleniumStandaloneOptions: 
   { version: '3.0.1',
     baseURL: 'https://selenium-release.storage.googleapis.com',
     drivers: { chrome: [Object], ie: [Object], firefox: [Object] } },
  noSessionReuse: false,
  simianResultEndPoint: 'api.simian.io/v1.0/result',
  simianAccessToken: false,
  simianResultBranch: null,
  simianRepositoryId: null,
  mocha: false,
  mochaCommandLineOptions: { bail: true },
  mochaConfig: 
   { tags: '',
     grep: null,
     timeout: 60000,
     reporter: 'spec',
     slow: 10000,
     useColors: true },
  jasmine: false,
  jasmineConfig: 
   { specDir: '.',
     specFiles: [ '**/*@(_spec|-spec|Spec).@(js|jsx)' ],
     helpers: [ 'support/**/*.@(js|jsx)' ],
     stopSpecOnExpectationFailure: false,
     random: false },
  jasmineReporterConfig: {},
  ddp: false,
  serverExecuteTimeout: 10000,
  phantom_w: 1280,
  phantom_h: 1024,
  phantom_ignoreSSLErrors: false,
  log: 'info',
  debug: false,
  seleniumDebug: null,
  debugCucumber: null,
  debugBrkCucumber: null,
  debugMocha: null,
  debugBrkMocha: null }

Chimp version:  0.49.0
ChromeDriver version:  ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262)
Java version:  java version "1.8.0_66", Java(TM) SE Runtime Environment (build 1.8.0_66-b17), Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Selenium version:  3.0.1
Selenium drivers version:  chrome: 2.25, ie: 2.50.0, firefox: 0.11.1
OS version:  Darwin 15.6.0
Node version:  v6.11.0
[chimp][browserdriver] starting process
[chimp][browserdriver.stdout] Starting ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262) on port 52418
Only local connections are allowed.

[chimp][browserdriver] started successfully
[chimp][browserdriver] kill called on browserdriver process with pid 49380
[chimp][browserdriver] checking if process exists
[chimp][browserdriver] browserdriver process exists, killing it with SIGTERM
[chimp][browserdriver] waiting for process to die (0/10)
[chimp][browserdriver] process is dead
Browser version:  chrome undefined

[chimp] Running...
[chimp] interrupting
[chimp] no processes to interrupt
[chimp][chromedriver] starting process
[chimp][chromedriver.stdout] Starting ChromeDriver 2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262) on port 52418
Only local connections are allowed.

[chimp][chromedriver] started successfully
[chimp][mocha] Running...


[chimp][helper] Using the chai-expect assertion library
[chimp][ddp] creating DDP wrapper
[chimp][ddp] Connecting to DDP server { host: 'localhost',
  port: '3000',
  ssl: false,
  path: undefined,
  autoReconnect: true,
  autoReconnectTimer: 500,
  maintainCollections: true,
  ddpVersion: '1',
  useSockJs: true }
[chimp][ddp] creating DDP wrapper
[chimp][ddp] Connecting to DDP server { host: 'localhost',
  port: '3000',
  ssl: false,
  path: undefined,
  autoReconnect: true,
  autoReconnectTimer: 500,
  maintainCollections: true,
  ddpVersion: '1',
  useSockJs: true }
[chimp][helper] getting browser
[chimp][session-manager-factory] options are { host: 'localhost',
  port: 52418,
  user: undefined,
  key: undefined,
  browser: 'chrome',
  deviceName: undefined }
[chimp][session-manager] created a new SessionManager
[chimp][helper] webdriverioOptions are  {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","name":""},"logLevel":"verbose","host":"localhost","port":52418,"path":"/wd/hub","baseUrl":null,"coloredLogs":true,"screenshotPath":null,"waitforTimeout":500,"waitforInterval":250,"sync":true}
[chimp][session-manager] creating webdriver remote 
[chimp][session-manager] checking connection to selenium server
[15:16:54]  COMMAND GET      "/wd/hub/status"
[15:16:54]  DATA        {}
[15:16:54]  RESULT      {"build":{"version":"alpha"},"os":{"arch":"x86_64","name":"Mac OS X","version":"10.11.6"}}
[chimp][session-manager] Connection to the to selenium server verified
[chimp][session-manager] watch mode is false, not reusing a session
[chimp][hooks] init browser
[chimp][hooks] init browser callback
[15:16:54]  COMMAND POST     "/wd/hub/session"
[15:16:54]  DATA        {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"chrome","platform":"ANY","name":"","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.6.2","name":"webdriverio"}}}
[chimp][helper] setupBrowserAndDDP had error
{ Error: session not created exception: Chrome version must be >= 58.0.3029.0
    at initBrowser (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:189:43)
    at Object.setupBrowserAndDDP (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:264:7)
    at Context.<anonymous> (/usr/local/lib/node_modules/chimp/dist/lib/mocha/mocha-helper.js:13:15)
    at /usr/local/lib/node_modules/chimp/dist/lib/utils/fiberize.js:29:22
    (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)
  message: 'session not created exception: Chrome version must be >= 58.0.3029.0\n  (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)',
  type: 'RuntimeError',
  seleniumStack: 
   { status: 33,
     type: 'SessionNotCreatedException',
     message: 'A new session could not be created.',
     orgStatusMessage: 'session not created exception: Chrome version must be >= 58.0.3029.0\n  (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)' } }
Error: session not created exception: Chrome version must be >= 58.0.3029.0
    at initBrowser (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:189:43)
    at Object.setupBrowserAndDDP (/usr/local/lib/node_modules/chimp/dist/lib/chimp-helper.js:264:7)
    at Context.<anonymous> (/usr/local/lib/node_modules/chimp/dist/lib/mocha/mocha-helper.js:13:15)
    at /usr/local/lib/node_modules/chimp/dist/lib/utils/fiberize.js:29:22
    (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64)
[chimp][mocha] Closed with code 2
[chimp][mocha] Mocha not in a stopping state
[chimp] Finished running async processes with errors
[chimp] run complete with errors Mocha failed
[chimp] interrupting
[chimp] 2 processes to interrupt
[chimp][mocha] interrupting mocha
[chimp][mocha] kill called on mocha process with pid 49391
[chimp][mocha] checking if process exists
[chimp][mocha] mocha process does not exists, ignoring
[chimp][chromedriver] interrupt called
[chimp][chromedriver] stopping process
[chimp][chromedriver] kill called on chromedriver process with pid 49390
[chimp][chromedriver] checking if process exists
[chimp][chromedriver] chromedriver process exists, killing it with SIGTERM
Mocha failed
Error in chimp init Mocha failed

.......

Я действительно хочу, чтобы шимпанзе работал, чтобы провести приемочные испытания значительного метеорного проекта, который мы используем в моей группе.

Если шимпанзе на работе не получится, если кто-нибудь узнает о лучшем способе проведения автоматического приемочного тестирования в метеорном приложении, я был бы также признателен за это понимание. Благодарю.

1 ответ

Я не мог заставить Chrome работать, но я мог заставить работать сафари, после удаления и переустановки chimp и использования --browser=safari в блоке scripts пакета package.json (или в клике, вызывающем chimp с npm.), Так что..,

$chimp -v
0.49.0
$npm -v
5.0.3
$node -v
v6.11.0
$chimp --mocha --test --path=tests --debug --ddp=http://localhost:3000 --browser=safari

работает.

Другие вопросы по тегам