-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be less sensitive to closed windows / stale browser sessions #78
Comments
+1 |
And this is what i get when something went wrong, i close the remote browser after all tests ran and i try to re-run some scenarios: [chimp][hooks] BeforeFeatures hook had error
{ [Error: Error communicating with the remote browser. It may have died.
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Macintosh.local', ip: '25.174.89.152', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0_60'
Driver info: driver.version: FirefoxDriver]
message: 'Error communicating with the remote browser. It may have died.\nBuild info: version: \'2.47.1\', revision: \'411b314\', time: \'2015-07-30 03:03:16\'\nSystem info: host: \'Macintosh.local\', ip: \'25.174.89.152\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.5\', java.version: \'1.8.0_60\'\nDriver info: driver.version: FirefoxDriver',
type: 'RuntimeError' }
Error: Error communicating with the remote browser. It may have died.
at Object.Future.wait (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/fibers/future.js:420:15)
at Object.timeoutsAsyncScriptSync (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/xolvio-fiber-utils/index.js:48:19)
at initBrowser (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/hooks.js:91:15)
at /Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/hooks.js:119:7
at /Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumber-wrapper.js:116:43
- - - - -
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Macintosh.local', ip: '25.174.89.152', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0_60'
Driver info: driver.version: FirefoxDriver
at new ErrorHandler.RuntimeError (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/lib/utils/ErrorHandler.js:92:12)
at RequestHandler.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/lib/utils/RequestHandler.js:138:25)
at Request.self.callback (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:373:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:1318:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:1266:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:492:13)
[chimp] Finished running async processes with errors
[chimp] run complete with errors Cucumber steps failed
[chimp] Could not get Cucumber Results from run result:
[ undefined, [ null ] ]
[xolvio:cucumber] Bad response from Chimp server.
{ statusCode: 200,
content: '',
headers:
{ 'content-type': 'application/json; charset=utf-8',
'cache-control': 'no-cache',
'content-length': '0',
date: 'Sun, 27 Sep 2015 17:41:31 GMT',
connection: 'keep-alive' },
data: null } |
Thanks for this I think we can update the session manager to detect these errors and create a new session if one is not found. I used to do this with RTD. |
You're welcome, thanks so much for taking on the problem! 👍 |
+1 |
1 similar comment
+1 |
This issue is being tracked in Chimpy |
Hey there!
Just wanted to point a problem that i am running into a lot when working with services like Facebook that use pop-ups etc. Chimp currently is really sensitive to browser windows not being closed "correctly" etc. which is kind of annoying when you try to setup a tab-switching workflow in your tests.
To try it, just run some tests and close the browser window by hand in the middle of anything. Chimp will completely freak out and not restart anymore. IMO it should not care at all – just stop the current test run and wait for the next file change to be there for you 😉
Here is one of the logs from such an error where i have to completely restart the test-server afterwards:
The text was updated successfully, but these errors were encountered: