problem capturing Chrome from Karma

126 views
Skip to first unread message

Will

unread,
Aug 11, 2015, 2:13:32 PM8/11/15
to karma-users
running karma 0.13.3, chrome 43, windows 7 64, intellij 14

problem: not able to capture chrome windows:
config:
// Karma configuration
// Generated on Fri Jul 31 2015 10:12:10 GMT-0400 (Eastern Daylight Time)

module.exports = function(config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],


// list of files / patterns to load in the browser
files: [
'src/**/*.js',
'test/**/*.js'
],


// list of files to exclude
exclude: [
],


// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,


// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,

plugins: [
'karma-jasmine',
'karma-chrome-launcher'
],

captureTimeout: 9000,
logLevel: 'LOG_DEBUG'
})
}


my debug output:

"C:\Program Files (x86)\nodejs\node.exe" C:\Users\xxx\.IntelliJIdea14\config\plugins\js-karma\js_reporter\karma-intellij\lib\intellijServer.js --karmaPackageDir=C:\Users\xxx\node_modules\karma --configFile=C:\Users\xxx\IdeaProjects\TestingFramworkProject\project\javascript\etc\karma.conf.js
31 07 2015 10:53:16.064:DEBUG [plugin]: Loading plugin karma-jasmine.
31 07 2015 10:53:16.070:DEBUG [plugin]: Loading plugin karma-chrome-launcher.
31 07 2015 10:53:16.082:DEBUG [plugin]: Loading plugin C:\Users\xxx\.IntelliJIdea14\config\plugins\js-karma\js_reporter\karma-intellij\lib\intellijPlugin.js.
31 07 2015 10:53:16.133:INFO [karma]: Karma v0.13.3 server started at http://localhost:9876/
31 07 2015 10:53:16.140:INFO [launcher]: Starting browser Chrome
31 07 2015 10:53:16.141:DEBUG [temp-dir]: Creating temp dir at C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:16.142:DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\xxx\AppData\Local\Temp\karma-99339325 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=99339325
31 07 2015 10:53:25.141:WARN [launcher]: Chrome have not captured in 9000 ms, killing.
31 07 2015 10:53:25.175:DEBUG [launcher]: Process Chrome exited with code 0
31 07 2015 10:53:25.176:DEBUG [temp-dir]: Cleaning temp dir C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:25.198:INFO [launcher]: Trying to start Chrome again (1/2).
31 07 2015 10:53:25.199:DEBUG [launcher]: Restarting Chrome
31 07 2015 10:53:25.199:DEBUG [temp-dir]: Creating temp dir at C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:25.200:DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\xxx\AppData\Local\Temp\karma-99339325 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=99339325
31 07 2015 10:53:34.199:WARN [launcher]: Chrome have not captured in 9000 ms, killing.
31 07 2015 10:53:34.224:DEBUG [launcher]: Process Chrome exited with code 0
31 07 2015 10:53:34.224:DEBUG [temp-dir]: Cleaning temp dir C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:34.242:INFO [launcher]: Trying to start Chrome again (2/2).
31 07 2015 10:53:34.243:DEBUG [launcher]: Restarting Chrome
31 07 2015 10:53:34.243:DEBUG [temp-dir]: Creating temp dir at C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:34.244:DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\xxx\AppData\Local\Temp\karma-99339325 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=99339325
31 07 2015 10:53:43.243:WARN [launcher]: Chrome have not captured in 9000 ms, killing.
31 07 2015 10:53:43.278:DEBUG [launcher]: Process Chrome exited with code 0
31 07 2015 10:53:43.279:DEBUG [temp-dir]: Cleaning temp dir C:\Users\xxx\AppData\Local\Temp\karma-99339325
31 07 2015 10:53:43.299:ERROR [launcher]: Chrome failed 2 times (timeout). Giving up.

Reply all
Reply to author
Forward
0 new messages