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

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

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

Last synced: about 1 year ago
JSON representation

Creating a sample repo for different Playwright languages and runners

Awesome Lists containing this project

README

          

# java-playwright-browserstack
This repo contains samples for running junit-5 playwright tests on browserstack.

## Setup
* Clone the repo `git clone -b sdk https://github.com/browserstack/java-playwright-browserstack.git`
* Install dependencies `mvn install`
* Update credentials in the `browserstack.yml` file with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).

## Running tests:
* To run a sample tests, run `mvn test -P sample-test`.
* To run local tests, run `mvn test -P sample-local-test`.

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)
* You can export the environment variables for the Username and Access Key of your BrowserStack account.

* For Unix-like or Mac machines:
```
export BROWSERSTACK_USERNAME= &&
export BROWSERSTACK_ACCESS_KEY=
```

* For Windows:
```
set BROWSERSTACK_USERNAME=
set BROWSERSTACK_ACCESS_KEY=
```