BrowserStack SDK Configurator
A guide to configure your Browserstack SDK. Run tests on BrowserStack’s real device cloud of 3000+ devices and browsers.
The complete list of capabilities supported by BrowserStack SDK can be found in the browserstack.yml gist file on GitHub.
Set access credentials
accessKey as env variables or directly in the config file.
Enable BrowserStack Local
Test localhost / internal servers in your network
BrowserStack’s Local Testing feature connects with test suites pointing to your localhost URL
BrowserStack Local supports all advanced use cases and restricted networks. Contact our support team for assistance in configuring BrowserStack Local for your enterprise.
Set platforms to test on
Set the browsers / devices you want to test under the
platforms object. Our config follows W3C formatted capabilities.
Set number of parallel threads per platform
parallelsPerPlatform property determines the number of parallel threads to be executed. BrowserStack’s SDK runner will select the best strategy based on the configured value.
Example 1: If you have configured 3 platforms and set
parallelsPerPlatform as 2: a total of 6 (2 x 3) parallel threads will be used on BrowserStack.
Example 2: If you have configured 1 platform and set
parallelsPerPlatform as 15: a total of 15 (1 x 15) parallel threads will be used on BrowserStack.
Organizing your test suite
sessionName capabilities help with organizing your tests on BrowserStack Dashboard.
sessionName is the name of your test sessions and is automatically picked from your test class/spec name. It doesn’t need to be set manually when using the BrowserStack SDK.
By default, BrowserStack provides prettified session logs, screenshots on every failed selenium command, and a video of the entire test. Additionally, you can enable the following features:
Enables screenshots for every selenium command ran
Enables network capture for the session in HAR format. Reduces session performance slightly
Set the remote Browser’s console log levels. Currently supported only on Chrome browsers (Desktop and Android)
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.