Running e2e tests on Sauce Labs from Protractor on Travis
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_USERNAMEconfig.sauceKey = process.env.SAUCE_ACCESS_KEYconfig.capabilities = 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER 'build': process.env.TRAVIS_BUILD_NUMBER
And not to add a seleniumAddress
.