username your BS username, you can also use BROWSERSTACK_USERNAME env variable.
accessKey your BS access key, you can also use BROWSERSTACK_ACCESS_KEY env variable.
startTunnel do you wanna establish the BrowserStack tunnel ? (defaults to true)
tunnelIdentifier/localIdentifier in case you want to start the BrowserStack tunnel outside karma by setting startTunnel to false, set the identifier passed to the -localIdentifier option here (optional)
retryLimit how many times do you want to retry to capture the browser ? (defaults to 3)
captureTimeout the browser capture timeout (defaults to 120)
timeout the BS worker timeout (defaults to 300
build the BS worker build name (optional)
name the BS worker name (optional)
project the BS worker project name (optional)
proxyHost the host of your proxy for communicating with BrowserStack REST API and BrowserStackLocal (optional)
proxyPort the port of your proxy (optional)
proxyUser the username used for authentication with your proxy (optional)
proxyPass the password used for authentication with your proxy (optional)
proxyProtocol the protocol of your proxy (optional. default: http. valid: http or https)
forcelocal force traffic through the local BrowserStack tunnel, passes flag through to BrowserStackTunnel
video enable video recording of session on BrowserStack (defaults to true)
Per browser options
device name of the device
real_mobile or realMobile allows the session to run on a real mobile device instead of an emulator / simulator (optional, defaults to false)
browser name of the browser
browser_version version of the browser
os which platform ?
os_version version of the platform
build the BS worker build name (optional, defaults to global)
name the BS worker name (optional, defaults to global)
project the BS worker project name (optional, defaults to global)
Note: you can also pass through any additional options supported by browserstack. (EG. url, resolution, etc.)
See https://www.browserstack.com/automate/capabilities for a full list of supported options.
BrowserStack reporter
To report session results back to BrowserStack for display on your BrowserStack dashboard, use the following additional configuration:
// karma.conf.jsmodule.exports = function(config) { config.set({ // The rest of your karma config is here // ... reporters: ['dots', 'BrowserStack'] })}
Browserstack iOS simulators
By default, your Selenium and JS tests will run on real iOS devices on BrowserStack. Since we are in the implementation phase, we are still working on a few things, such as adding more devices, ability to test on local URLs, etc.
In case your tests are facing any issues on real iOS devices, we also provide iOS simulators where you can run your automated tests smoothly.
To access our iOS simulators, use the following capabilities:
Many CI/CD systems will make the name or ID of the currently running build available via an environment variable. The follow environment variables below are supported by default: