/pytest-playwright-browserstack

Creating a sample repo for different Playwright languages and runners

Primary LanguagePython

pytest-playwright-browserstack

Playwright with PyTest Test runner Integration with BrowserStack.

BrowserStack Logo

Prerequisite

  • Python3

Setup

  • Clone the repo
  • Install dependencies pip install -r requirements.txt
  • To run your automated tests using BrowserStack, you must provide a valid username and access key. This can be done adding your userName and accesKey in the browserstack.yml file.
  • You can also set the credentials in BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables.

Run sample tests

  • To run tests, run browserstack-sdk pytest -s tests/sample-test.py
  • To run local tests, run browserstack-sdk pytest -s tests/sample-local-test.py.

Understand how many parallel sessions you need by using our Parallel Test Calculator

Notes