python3 should be installed
git clone -b sdk https://github.com/browserstack/robot-browserstack.git
python3 -m venv env
source env/bin/activate # on Mac
env\Scripts\activate # on Windows
pip install -r requirements.txt
browserstack.yml
config fle.You can also export them as environment variables, BROWSERSTACK_USERNAME
and BROWSERSTACK_ACCESS_KEY
:
export BROWSERSTACK_USERNAME=<browserstack-username>
export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
set BROWSERSTACK_USERNAME=<browserstack-username>
set BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
setx BROWSERSTACK_USERNAME=<browserstack-username>
setx BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
browserstack.yml
file, run:
browserstack-sdk robot ./tests/test-*.robot
browserstack.yml
file, run:
browserstack-sdk robot ./tests/local-test.robot
Understand how many parallel sessions you need by using our Parallel Test Calculator