An open API service indexing awesome lists of open source software.

https://github.com/browserstack/pytest-playwright-browserstack

Creating a sample repo for different Playwright languages and runners
https://github.com/browserstack/pytest-playwright-browserstack

Last synced: 11 months ago
JSON representation

Creating a sample repo for different Playwright languages and runners

Awesome Lists containing this project

README

          

# pytest-playwright-browserstack

Playwright with PyTest Test runner Integration with BrowserStack.

![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
## 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](https://www.browserstack.com/automate/parallel-calculator?ref=github)

## Notes
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)