I am trying to connect my CI tests to BrowserStack. My tests are running using karma-mocha and https://github.com/karma-runner/karma-browserstack-launcher. I can easily run tests on desktop browsers but I am unable to connect mobile browsers to the karma local server. The error that I see is:
I am using BrowserStackLocal.exe in order to enable the connection to the localhost karma server:
BrowserStackLocal.exe <Key> -v -localIdentifier **id1** -forcelocal
and in my karma.conf.js:
browserStack: {
username: '<username>',
accessKey: '<Key>',
startTunnel: false,
tunnelIdentifier: '**id1**'
}
When working with 'Live' in BrowserStack I am able to connect the browser to my local karma and to execute tests. Here is an example:
Chrome Mobile 50.0.2657 (Android 6.0.99): Executed 76 of 79 (skipped 3) SUCCESS
Any ideas on why the Automate fails? Thanks