opentok-meet
opentok-meet copied to clipboard
Get the browserstack tests to run screensharing tests
I have temporarily turned off the screensharing tests for browserstack until I can get them to work. I will need to:
- Have Travis run the webserver on SSL by getting it to generate a crt and key file.
- Clone the extension repo at https://github.com/aullman/screensharing-extensions
- Tell Chrome to load that extension in the protractor-browserify.conf.js file
- Somehow get the extensionId and put that in the env
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?
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?