2017-06-19 4 views
-1

Chromeバージョン59.0.3071.86(公式ビルド)(64ビット版)でOSX 10.11.6を実行しています。 )、私はダウンロードして最新の流星のtodosアプリをインストールし、チュートリアルに続いて、ユニットと統合テストの例をうまく実行しました。チンパンズ受入れテストを試み、出力に--debugを使用すると、ブラウザの非互換性を示す最初のログが表示されます。 node_modules /チンパンジー/ DIST/binに/にDefault.jsのseleniumStandaloneOptionsこの(通知バージョン:2.30)のような を変更した後...chromeでmac osx 10.11.16で動作する最新のmeteor todosサンプルチンパンバー受入れテストを取得できませんVersion 59.0.3071.86

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' 
     }, 

..... 私は下の2番目のログを取得します。 私は窓が一瞬フラッシュした後、遠く離れて行くのを見ています - それが何をしているかを見るには速すぎます。流星群にも出力はありません。私は多くの異なるオプションを試しましたが、この作業を行うようには見えず、どのようにデバッグするのか分からないようです。他のアイデアやデバッグヘルプがありますか?ブラウザはlocalhost:3000上でtodosアプリケーションを実行することができます。明らかな問題はありません。 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: '[email protected]', 
    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)[email protected](js|jsx)' ], 
    helpers: [ 'support/**/*[email protected](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: '[email protected]', 
    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)[email protected](js|jsx)' ], 
    helpers: [ 'support/**/*[email protected](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 

......

私は私のグループで使用している重要な流星プロジェクトで受け入れテストを実装するために、チンパンジーを働かせたいと思っています。

チンパンジーがうまく動作しない場合、誰かが流星のアプリケーションで自動化された受け入れテストを行う良い方法を知っていれば、その洞察にも感謝します。ありがとう。

+0

私はこれらのバージョンを使用していることを忘れていました。 –

+0

$ node -v v6.11.0 $ npm -v 5.0.3 –

+0

こんにちは。助けてくれる情報が十分ではありません。 gist.github.comに完全なログを表示できますか? –

答えて

0

私はChromeを動作させることができませんでしたが、chimpをアンインストールして再インストールし、package.jsonのスクリプトブロック(またはnimpでchimpを呼び出すcli)で--browser = safariを使用した後で、そう) ...

$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 

作品。

+0

それを聞いてうれしいです。 Xolv.io/communityに参加して、チンパンジーの他のユーザーからの助けを受けてください。 –

+0

ありがとう、私は、チンパンジーに感​​心しています。 –

関連する問題