grunt-protractor-runner icon indicating copy to clipboard operation
grunt-protractor-runner copied to clipboard

Travis + Saucelabs: protractor Unexpected server error

Open AdamQuadmon opened this issue 11 years ago • 1 comments

Running "protractor" task
Using SauceLabs selenium server at http://adamquadmon:[email protected]:80/wd/hub

/home/travis/build/xxx/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1542
      throw error;
            ^
UnknownError: Unexpected server error.

my .travis.yml:

language: node_js
node_js:
  - "0.10"
before_script:
  - gem install compass
  - npm install -g bower
  - npm install -g protractor
  - npm install grunt-cli
  - npm install
  - bower install
script:
  #- grunt test:mocha:saucelabs
  - grunt test:jasmine:saucelabs # this is grunt-protractor-runner
addons:
  sauce_connect:
    username: "adamquadmon"
    access_key: "xxx"
  hosts:
    - xxx.com
  • I tried both with local or -g protractor installations
  • I can run saucelabs test from my local
  • I can run saucelabs test with grunt-mocha-protractor with the same configuration

that's why I think the issue is related to this task.

AdamQuadmon avatar Jan 07 '14 14:01 AdamQuadmon

I don't know how to help you. :P I have no experience with Saucelabs. But, if you look at the source of this task, it just spawns the protractor command with configured parameters.

"I can run saucelabs test from my local" - you mean running this grunt task in your local machine not on Travis?

teerapap avatar Jan 11 '14 08:01 teerapap