chimp: [chimp][helper] setupBrowserAndDDP had error

chimp --ddp=http://localhost:3000 --path=./app/tests/cucumber/features

[chimp] Running...
[chimp][helper] setupBrowserAndDDP had error
{ [Error: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"3267.1","isDefault":true},"id":1,"name":"","origin":"://"}]
  message: 'session not created exception\nfrom unknown error: Runtime.executionContextCreated has invalid \'context\': {"auxData":{"frameId":"3267.1","isDefault":true},"id":1,"name":"","origin":"://"}',
  type: 'RuntimeError',
  seleniumStack: 
   { status: 33,
     type: 'SessionNotCreatedException',
     message: 'A new session could not be created.',
     orgStatusMessage: 'session not created exception\nfrom unknown error: Runtime.executionContextCreated has invalid \'context\': {"auxData":{"frameId":"3267.1","isDefault":true},"id":1,"name":"","origin":"://"}\n  (Session info: chrome=54.0.2840.59)\n  (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.11.6 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 720 milliseconds\nBuild info: version: \'2.50.1\', revision: \'d7fc91b\', time: \'2016-01-29 19:08:26\'\nSystem info: host: \'theuys-macbook-pro-2.local\', ip: \'192.168.178.17\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.11.6\', java.version: \'1.8.0_101\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver' } }
Error: session not created exception
    at Object.Future.wait (/Users/theuylimpanont/Development/part-up/node_modules/fibers/future.js:449:15)
    at Object.<anonymous> (/Users/theuylimpanont/Development/part-up/node_modules/wdio-sync/build/index.js:345:27)
    at initBrowser (/Users/theuylimpanont/Development/part-up/node_modules/chimp/dist/lib/chimp-helper.js:168:17)
    at Object.setupBrowserAndDDP (/Users/theuylimpanont/Development/part-up/node_modules/chimp/dist/lib/chimp-helper.js:226:7)
    at /Users/theuylimpanont/Development/part-up/node_modules/chimp/dist/lib/cucumberjs/hooks.js:21:24
    at /Users/theuylimpanont/Development/part-up/node_modules/meteor-promise/fiber_pool.js:33:40
    - - - - -
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"3267.1","isDefault":true},"id":1,"name":"","origin":"://"}
    at new RuntimeError (/Users/theuylimpanont/Development/part-up/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:115:12)
    at Request._callback (/Users/theuylimpanont/Development/part-up/node_modules/webdriverio/build/lib/utils/RequestHandler.js:257:39)
    at Request.self.callback (/Users/theuylimpanont/Development/part-up/node_modules/webdriverio/node_modules/request/request.js:373:22)
    at emitTwo (events.js:100:13)
    at Request.emit (events.js:185:7)
    at Request.<anonymous> (/Users/theuylimpanont/Development/part-up/node_modules/webdriverio/node_modules/request/request.js:1318:14)
    at emitOne (events.js:95:20)
    at Request.emit (events.js:182:7)
    at IncomingMessage.<anonymous> (/Users/theuylimpanont/Development/part-up/node_modules/webdriverio/node_modules/request/request.js:1266:12)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 30 (12 by maintainers)

Most upvoted comments

I’m running node v6.6.0, chimp v0.41.2 (w/ cucumber v1.3.0) and still getting a pending is not defined.

    this.Before( "@pending", function() {
        // We use this to indicate that automation code is still being written
        pending();
    } );

    this.Before( "@bug", function() {
        // We use this to indicate a current bug in the UI that won't be corrected for a while
        pending();
    } );

I followed this thread, which got rid of most of my problems, namely by bumping up the version and delivering the LC_NUMERIC env var before running. Hoping I’m missing something obvious.

I’ll add the verbatim error as well:

1) Scenario: Via Connections Tab to Existing Card on Another Board - features/gherkin_statements/connections/card-dialog/connect-to-existing.feature:28
   Step: Before
   Step Definition: features/step_definitions/support/hooks.js:13
   Message:
     ReferenceError: pending is not defined
         at World.<anonymous> (features/step_definitions/support/hooks.js:15:3)

1 scenario (1 failed)
20 steps (20 skipped)
0m00.072s

Had the same problem and the update to 0.41.1 helped 😃 Thanks a lot!

Sure.

Excerpt of package.json

"scripts": {
    "test": "chimp",
    "watch": "chimp --watch",
    "ci": "chimp --browser=phantomjs --screenshotsOnError=true"
  }

And I am running it with npm test

@samhatoum Please reopen this issue. I am having the same problem. But in my case I am trying to run npm test from the qualityfaster repository. Chimp is working fine in other project.

  • Chimp: 0.41.2
  • Node: 4.6.1
  • OS: Mac OSX El Capitan 10.11.6
  • I have JDK installed
  • I tried to remove node_modules and install dependencies many times

This is the error:

➜  qualityfaster git:(master) ✗ npm test

> @ test /Users/lnmunhoz/workspaces/playground/qualityfaster
> .scripts/test.js

[[[[[ ~/workspaces/playground/qualityfaster/src ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Meteor 1.4.1.3 is available. Update this project with 'meteor update'.
=> Started your app.

inside no mirror   --path=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/specifications --domainSteps=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/step_definitions/domain --criticalSteps=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/step_definitions/critical --watchSource=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests --singleSnippetPerFile=1 --no-source
chimpBin  /Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/.bin/chimp
command  --ddp=http://localhost:3000 --path=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/specifications --domainSteps=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/step_definitions/domain --criticalSteps=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests/step_definitions/critical --watchSource=/Users/lnmunhoz/workspaces/playground/qualityfaster/tests --singleSnippetPerFile=1 --no-source
=> App running at: http://localhost:3000

[chimp] Running...

[chimp] domain scenarios...
[chimp][helper] setupBrowserAndDDP had error
{ [Error: Connection refused (Connection refused)]
  message: 'Connection refused (Connection refused)',
  type: 'RuntimeError',
  seleniumStack:
   { status: 13,
     type: 'UnknownError',
     message: 'An unknown server-side error occurred while processing the command.',
     orgStatusMessage: 'Connection refused (Connection refused)' } }
Error: Connection refused (Connection refused)
    at Object.Future.wait (/Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/fibers/future.js:449:15)
    at Object.<anonymous> (/Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/wdio-sync/build/index.js:345:27)
    at initBrowser (/Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/chimp/dist/lib/chimp-helper.js:125:15)
    at Object.setupBrowserAndDDP (/Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/chimp/dist/lib/chimp-helper.js:200:7)
    at /Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/chimp/dist/lib/cucumberjs/hooks.js:21:24
    at /Users/lnmunhoz/workspaces/playground/qualityfaster/.scripts/node_modules/meteor-promise/fiber_pool.js:33:40
    - - - - -
Cucumber steps failed
Chimp exited with code 2
Chimp exited with code 2
npm ERR! Test failed.  See above for more details.