So I have my open source project (https://github.com/ahmednuaman/radian) and I have some e2e tests that run fine locally using Protractor.
I\'ve followed the Sauce Labs
Ok so after re-reading all the docs again I found that my config.seleniumAddress
was incorrect as it was missing the /wd/hub
path at the end; then I got a new error: it was complaining about my credentials.
After diving into Protractor's source I found this doozy, it basically wiped out all the sauce*
credentials if I specify a seleniumAddress
, so I removed it from my config, tried again and it worked! Woop woop! Here's the Travis output just for fun: https://travis-ci.org/ahmednuaman/radian/jobs/16271613
So the way to get Protractor to run on Sauce Labs via Travis is to use these config options:
config.sauceUser = process.env.SAUCE_USERNAME
config.sauceKey = process.env.SAUCE_ACCESS_KEY
config.capabilities =
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
'build': process.env.TRAVIS_BUILD_NUMBER
And not to add a seleniumAddress
.