Integrate your test suite
Integrate Automate Turboscale into your test suite using the BrowserStack WebdriverIO service.
The BrowserStack WDIO service ensures a plug-and-play integration. It passes test context and configures other BrowserStack features under the hood without requiring any code changes.
Prerequisites
- Node v12+, Selenium v2.5+ (W3C/JSON Wire)
- An existing WebdriverIO based web automation test suite.
Integration steps
Install BrowserStack WDIO service
Use either of the following ways to install BrowserStack WDIO service to your project:
npm install @wdio/browserstack-service --save-dev
"devDependencies": {
"@wdio/browserstack-service": "^7",
}
Update your WebdriverIO config file
Update your configuration file with the following parameters to run tests on Automate TurboScale.
At the end of this step, you will have a sample configuration file with BrowserStack capabilities to use in your project.
Add BrowserStack service
Add browserstack
to the services
list in your configuration file.
Set platforms to test on
Set the browsers/devices you want to test within the capabilities
array. Our config follows W3C formatted capabilities.
BrowserStack Reporting
You can leverage BrowserStack’s extensive reporting features using the capabilities:
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 Automate Turboscale.
Use additional debugging features
Additionally, you can enable the following features:
Use Automate Turboscale
Update configuration file with selected capabilities
Copy the following code snippet and add it to your configuration file of your test suite.
In the above eample code snippet, it is essential to set the following parameters:
hostname
- is the grid url found on the overview page of your automation-console
For example, if your grid url is https://cbsorgle-hub.browserstack-ats.com/wd/hub
, the hostname
will be cbsorgle-hub.browserstack-ats.com
path
- /wd/hub
port
- 443
if using https
protocol, or 4444
if using http
protocol
protocol
- https
or http
Run your test suite
Your test suite is now ready to run on Automate TurboScale. Use the commands defined in your package.json
file to run the tests.
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.
We're continuously improving our docs. We'd love to know what you liked
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.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!