E2e protractor tests fails on Circle

angular

#1

Hello.
I’m having problems running e2e protractor tests on CircleCi. Running them locally works okay. I’m using grunt-selenium-webdriver and grunt-protractor-runner. What can be cause of the error?

errors:

Jasmine spec timed out. Resetting the WebDriver Control Flow.
http://joxi.ru/n2YnYeysjOy3gA

here is settings in grunt file:

protractor: {
options: {
configFile: “./protractor_conf.js”,
keepAlive: true, // If false, the grunt process stops when the test fails.
noColor: false, // If true, protractor will not use colors in its output.
args: {
// Arguments passed to the command
}
},
all: { // Grunt requires at least one target to run so you can simply put ‘all: {}’ here too.
options: {
args: {} // Target-specific arguments
}
}
},

grunt.loadNpmTasks(‘grunt-protractor-runner’);
grunt.loadNpmTasks(‘grunt-selenium-webdriver’);

grunt.registerTask(‘test’, ‘selenium_start’, ‘protractor’, ‘selenium_stop’]);

and my proractor_config.js code:

var path = require(‘path’);
var jasmineReporters = require(‘jasmine-reporters’);
var HtmlReporter = require(‘protractor-html-screenshot-reporter’);

exports.config = {
specs: [‘test/integration/initializers/initialize.js’],
framework: ‘jasmine2’,
seleniumAddress: ‘http://localhost:4444/wd/hub’,
capabilities: {
‘browserName’: ‘firefox’
},
baseUrl: ‘http://localhost:3000’,
allScriptsTimeout: 61000,
getPageTimeout: 60000,
jasmineNodeOpts: {
onComplete: null,
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 70000
},
onPrepare: function() {
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: path.join(process.env[‘CIRCLE_TEST_REPORTS’] || ‘’, ‘testresults’),
filePrefix: ‘xmloutput’
}));

jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: ‘testscreenshots’
}));

}
};


#2

Have you found a solution?


#3