https://github.com/browserstack/codecept-js-playwright-browserstack
Sample code for running sessions with Codecept Playwright on Browserstack
https://github.com/browserstack/codecept-js-playwright-browserstack
Last synced: 6 months ago
JSON representation
Sample code for running sessions with Codecept Playwright on Browserstack
- Host: GitHub
- URL: https://github.com/browserstack/codecept-js-playwright-browserstack
- Owner: browserstack
- Created: 2024-11-18T09:54:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T05:58:08.000Z (over 1 year ago)
- Last Synced: 2025-06-01T02:55:41.746Z (about 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# CodeceptJS-Playwright-Browserstack
# Integrating Playwright
and CodeceptJS
with BrowserStack 
## Setup
* Clone the repo `git clone https://github.com/browserstack/codecept-js-playwright-browserstack.git`.
* Run `cd codecept-js-playwright-browserstack`.
* Install dependencies `npm install`
## Running your tests
- To run the sample tests in parallel across the platforms specified in the `browserstack.yml`, run `npm run sample-test`.
- To run the sample local tests in parallel across the platforms specified in the `browserstack.yml`, run `npm run sample-local-test`.
## Notes
* You can export the environment variables for the Username and Access Key of your BrowserStack account.
```
export BROWSERSTACK_USERNAME= &&
export BROWSERSTACK_ACCESS_KEY=
```
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
* Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
## Addtional Resources
* [Documentation for writing Automate test scripts in CodeceptJS](https://codecept.io/helpers/WebDriver/#webdriver)
* [Documentation for playwright](https://playwright.dev/docs/intro)
* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)