Configure the Polymer web tester component to use a selenium mesh server

I need to configure Polymer web-component-tester to use a selenium grid running on http://jenkins.myapp.corp.web:4444/wd/hub , so I can run my tests on Jenkins. What is Grunt configuration for? I am assuming something like this:

 'wct-test': { local: { options: { activeBrowsers: [{ browserName: 'chrome', url: 'http://jenkins.myapp.corp.web:4444/wd/hub' }] } } } 
+7
unit-testing selenium polymer web-component-tester
source share
2 answers

It turns out there was a bug with the web tester component that was fixed in the latest version. We have finished working with our grid using this configuration:

 var os = require('os'); ... 'wct-test': { local: { options: { remote: false, activeBrowsers: [{ browserName: "chrome", url: "http://jenkins.myapp.corp.web:4444/wd/hub" }], webserver: { hostname: os.hostname() } } } } 
+3
source share

It seems you can change your wct.conf.js and set the grid configuration:

  module.exports = { // See https://github.com/Polymer/web-component-tester/blob/master/runner/config.js#L47-54 activeBrowsers: [ { // Accepts anything wd does: https://github.com/admc/wd#browser-initialization url: 'http://user: apiKey@your.selenium.server /wd/hub', // ... any other capabilities you like: browserName: 'theBrowser', } ], plugins: { local: false, sauce: false, } }; 
+1
source share

All Articles