Has anyone setup Protractor e2e tests on Bamboo CI?
I've been running my WebDriver tests locally from Grunt via the grunt-protractor-runner / grunt-protractor-webdriver projects. Protractor config is standard. Relevant Grunt config:
grunt.initConfig({
protractor: {
options: {
keepAlive: false,
noColor: false
},
modules: {
configFile: 'protractor.e2e.conf.js'
}
},
protractor_webdriver: {
modules: {
options: {
path: 'node_modules/protractor/bin/',
command: 'webdriver-manager start'
}
}
}
});
grunt.registerTask('e2e', [ 'protractor_webdriver', 'protractor' ]);
This works like a charm locally with a simple grunt e2e
Trying to get this working on Bamboo is less than effective. My tasks so far:
- Checkout repo source
npm install
webdriver-manager update
grunt e2e
The log shows it starting up Selenium server, launching Firefox, then failing with the following error:
UnknownError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Error: no display specified