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
- Host: GitHub
- URL: https://github.com/browserstack/java-playwright-browserstack
- Owner: browserstack
- Created: 2022-12-08T06:52:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T12:32:37.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T18:51:13.343Z (over 1 year ago)
- Language: Java
- Size: 60.5 KB
- Stars: 0
- Watchers: 11
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
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=
```