i'm getting error:
$ docker run -it --privileged --rm --net=host -v /dev/shm:/dev/shm -v $(pwd):/protractor webnicer/protractor-headless src/test/e2e/config/local-config.js [20:21:32] i/local - starting selenium standalone server... [20:21:32] i/launcher - running 1 instances of webdriver [20:21:35] i/local - selenium standalone server started @ http://192.168.65.2:47981/wd/hub [20:22:00] e/launcher - null [20:22:00] e/launcher - webdrivererror: null @ webdrivererror (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:27:5) @ object.checklegacyresponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:639:15) @ parsehttpresponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:538:13) @ client_.send.then.response (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:472:11) @ managedpromise.invokecallback_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1379:14) @ taskqueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14) @ taskqueue.executenext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21) @ asyncrun (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2820:25) @ /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7 @ process._tickcallback (internal/process/next_tick.js:103:7) from: task: webdriver.createsession() @ function.createsession (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:329:24) @ builder.build (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/builder.js:458:24) @ local.driverprovider.getnewdriver (/usr/local/lib/node_modules/protractor/built/driverproviders/driverprovider.js:37:33) @ runner.createbrowser (/usr/local/lib/node_modules/protractor/built/runner.js:190:43) @ /usr/local/lib/node_modules/protractor/built/runner.js:264:30 @ _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:834:54) @ self.promisedispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:863:30) @ promise.promise.promisedispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:796:13) @ /usr/local/lib/node_modules/protractor/node_modules/q/q.js:604:44 @ runsingle (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:137:13) [20:22:00] e/launcher - process exited error code 199
and protractor config file:
var jasmine2htmlreporter = require('../../../main/webapp/node_modules/protractor-jasmine2-html-reporter'); exports.config = { chromedriver: '../../../main/webapp/node_modules/protractor/selenium/chromedriver', seleniumserverjar: '../../../main/webapp/node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar', onprepare: function() { global.nodemodulespath = '../../main/webapp/node_modules/'; global.mongoconnection = '127.0.0.1:27017'; global.dbname = 'dbname'; jasmine.getenv().addreporter(new jasmine2htmlreporter({ savepath: 'e2eresults/', screenshotsfolder: 'screenshots', takescreenshots: true, takescreenshotsonlyonfailures: true })); var width = 1280; var height = 768; browser.driver.manage().window().setsize(width, height); }, framework: 'jasmine2', baseurl: 'http://localhost:8080/my-app/', specs: ['../tests/**/*.spec.js'], restartbrowserbetweentests: false, jasminenodeopts: { showcolors: true, defaulttimeoutinterval: 30000, isverbose: true, includestacktrace: true } };
the config file looks me, i'm not sure why i'm facing error. image 1 https://hub.docker.com/r/webnicer/protractor-headless/
anyone facing same issue?
Comments
Post a Comment