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

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

Awesome Lists containing this project

README

          

# CodeceptJS-Playwright-Browserstack

# Integrating Playwright Node.js and CodeceptJS Node.js with BrowserStack 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)