opentok-meet icon indicating copy to clipboard operation
opentok-meet copied to clipboard

Get the browserstack tests to run screensharing tests

Open aullman opened this issue 9 years ago • 2 comments

I have temporarily turned off the screensharing tests for browserstack until I can get them to work. I will need to:

  1. Have Travis run the webserver on SSL by getting it to generate a crt and key file.
  2. Clone the extension repo at https://github.com/aullman/screensharing-extensions
  3. Tell Chrome to load that extension in the protractor-browserify.conf.js file
  4. Somehow get the extensionId and put that in the env

aullman avatar Aug 03 '15 05:08 aullman

Hm, Chrome is running on Browserstack, not in Travis. This would work for the Travis Multirunner solution though. Unless I can install Chrome Extensions on BrowserStack?

aullman avatar Aug 06 '15 12:08 aullman

Screensharing tests are now running in Firefox but still not Chrome. Apparently it is possible to get Browserstack to load a .crx file though.

We investigated this further and it seems it is possible to send packed Chrome extensions to the remote machine using Node.js/ Protractor. You need to include a 64 bit encoded format of the extension in ChromeOptions as given below and that should do the trick:

'chromeOptions': {
    'extensions': [new Buffer(fs.readFileSync("/Users/ABC/Downloads/BrowserStack-Local_v12.0.crx")).toString('base64')],
    },

The path will point to your packed Chrome extension file (.crx file). I have attached a sample config file with ChromeOptions for your reference.

Could you please try this and let me know how things go?

aullman avatar Aug 28 '15 04:08 aullman