Skip to main content

Automated tests on Robot

Quick start guide to integrate Automated tests of BrowserStack Accessibility Testing with Robot.

Prerequisites

  • You have Robot version 5 or above, Python3 and Pip3 installed.
  • You have a Robot test suite which runs on BrowserStack Automate.

Integrate with Automated tests

Follow the steps below to get started with adding Automated tests to your test suite:

The minimum version of BrowserStack SDK that supports Automated tests is 1.19.14.

Install BrowserStack Robot SDK

Execute the following commands to install BrowserStack Robot SDK.

Terminal
python3 -m pip install browserstack-sdk
browserstack-sdk setup --framework "robot" --username "YOUR_USERNAME" --key "YOUR_ACCESS_KEY"

Create the browserstack.yml file

You’ll have to create the browserstack.yml file shown below. Else, just verify that your config file has all the required key-value pairs.

Specifically, make sure to add the accessibility flag at the end of the browserstack.yml file.

Create the browserstack.yml file in the root folder of your test suite if it doesn’t exist.

The projectName and buildName config must be static and not change across different runs of the same build. This is a deviation in approach as specified by BrowserStack Automate since Automated tests will automatically identify different build runs.

browserstack.yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
buildName: "Your static build/job name goes here"
projectName: "Your static project name goes here"
...
accessibility: true

Accessibility testing will only run on Desktops (Mac & Windows) with Chrome 95 & above on Automate.

Run your suite with BrowserStack Automated tests

Prepend browserstack-sdk before your existing run commands to execute your tests on BrowserStack using the Robot SDK.

Terminal
browserstack-sdk robot <path-to-test-files>


Once the build has completed and the Accessibility report is ready, it will automatically get sent to the Automated tests dashboard.

Visit Automated tests Dashboard

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

Is this page helping you?

Yes
No

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!

Talk to an Expert
Download Copy