https://github.com/browserstack/jbehave-browserstack
Selenium examples for JBehave and BrowserStack Automate
https://github.com/browserstack/jbehave-browserstack
Last synced: 9 months ago
JSON representation
Selenium examples for JBehave and BrowserStack Automate
- Host: GitHub
- URL: https://github.com/browserstack/jbehave-browserstack
- Owner: browserstack
- Created: 2016-05-06T07:41:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T05:37:25.000Z (over 1 year ago)
- Last Synced: 2025-09-24T15:40:54.921Z (10 months ago)
- Language: Java
- Homepage: https://www.browserstack.com
- Size: 53.7 KB
- Stars: 1
- Watchers: 17
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# jbehave-browserstack
[JBehave](https://github.com/jbehave/jbehave-core) Integration with BrowserStack.


## Using Maven
### Setting up a sample test
* Clone the repo
* Install dependencies `mvn install`
* Update `browserstack.yml` file inside the root directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
### Running your tests
* To run a sample parallel test, run `mvn test -P sample-test`
* To run local tests, update your `browserstack.yml` file with `browserstackLocal: true` and 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)
## Using Gradle
### Prerequisites
- If using Gradle, Java v9+ is required.
### Setting up a sample test
* Clone the repo
* Update `browserstack.yml` file inside the root directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
### Running your tests
* To run a sample parallel test, run `gradle sampleTest`
* To run local tests, update your `browserstack.yml` file with `browserstackLocal: true` and 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
```
export BROWSERSTACK_USERNAME= &&
export BROWSERSTACK_ACCESS_KEY=
```