teerapap / grunt-protractor-runner

A Grunt plugin for running protractor runner.
MIT License
149 stars 123 forks source link

Travis + Saucelabs: protractor Unexpected server error #34

Open AdamQuadmon opened 10 years ago

AdamQuadmon commented 10 years ago
Running "protractor" task
Using SauceLabs selenium server at http://adamquadmon:xxxx@ondemand.saucelabs.com: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

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

teerapap commented 10 years ago

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?