You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## junit5-browserstack
Master branch contains **Selenium 4 - W3C protocol** samples, for **Selenium 3** please checkout [selenium-3](https://github.com/nithyamn/junit5-browserstack/tree/selenium-3) branch
## Using Maven
### Setup
* Clone the repo
* Install dependencies `mvn install`
* Update `browserstack.yml` files inside the root directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
### Running your tests
* To run a single test, run `mvn test -P single`
* To run local tests, run `mvn test -P local`
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
## Using Gradle
### Prerequisites
- If using Gradle, Java v9+ is required.
### Setup
- Clone the repository
- Install dependencies `gradle build`
### Running your tests
- To run the single test, run `gradle sampleTest`
- To run local tests, run `gradle sampleLocalTest`
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)
* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/java#setting-os-and-browser)
* 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=
```
## Open Issues
* Value for `junit.jupiter.execution.parallel.config.fixed.parallelism` gets multiplied in selenium versions above `4.0.0-alpha-3`.
Github issue:
* SeleniumHQ/selenium#9359
* SeleniumHQ/selenium#10113
# browserstack_tests