javascript - Run selenium jar on travis CI from protractor node_modules folder -
i setting travis in order execute e2e tests through protractor. on protractor.config.js
have following:
seleniumserverjar: './node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.5.0.jar'
so refers selenium jar included default inside protractor
plugin.
then use plugin gulp-protractor
in order execute tests pointing right protractor.config.js
.
locally works charm.
but when trying execute on travis, getting following error:
[18:59:15] i/launcher - running 1 instances of webdriver [18:59:15] e/local - error code: 135 [18:59:15] e/local - error message: no selenium server jar found @ /home/travis/build/quirimmo/qprotractor/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.5.0.jar. run 'webdriver-manager update' download binaries.
any idea why looks cannot retrieve jar node_modules subfolder please?
here .travis.yml
configuration, pretty simple:
sudo: required dist: trusty addons: chrome: stable language: node_js node_js: - '6.11' before_script: - export display=:99.0 - sh -e /etc/init.d/xvfb start - sleep 3 install: - npm install script: - echo "triggered!" - gulp protractor-test
thanks lot, appreciated!
p.s. did on other projects travis running manually webdriver-manager
, pointing selenium address protractor.config.js
, don't want solution , want go on through seleniumserverjar
property, because in way run alone without need of starting manually webdriver-manager
fixed in repo. should change before_script
below
before_script: - export display=:99.0 - sh -e /etc/init.d/xvfb start - sleep 3 - npm install -g webdriver-manager - webdriver-manager update - webdriver-manager start & - sleep 3
and in protactor.confg.js
add seleniumaddress
exports.config = { seleniumaddress: 'http://127.0.0.1:4444/wd/hub/', specs: [ './test/base-protractor.spec.js', './test/element-finder.spec.js', './test/element-array-finder.spec.js' ], onprepare: function() { require('./index'); } };
Comments
Post a Comment