https://github.com/browserstack/behat-browserstack
Selenium examples for Behat and BrowserStack Automate
https://github.com/browserstack/behat-browserstack
Last synced: 11 months ago
JSON representation
Selenium examples for Behat and BrowserStack Automate
- Host: GitHub
- URL: https://github.com/browserstack/behat-browserstack
- Owner: browserstack
- Created: 2016-03-01T08:33:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T10:13:10.000Z (over 2 years ago)
- Last Synced: 2025-04-22T21:06:19.710Z (11 months ago)
- Language: PHP
- Homepage: https://www.browserstack.com
- Size: 30.3 KB
- Stars: 13
- Watchers: 16
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# behat-browserstack
[Behat](https://github.com/Behat/Behat) Integration with BrowserStack.

## Setup
* Clone the repo
* Install dependencies `composer install`
* Update `*.conf.yml` files inside the `config/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
## Running your tests
- To run tests, run `composer parallel`
- To run local tests, run `composer local`
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/php#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=
```
## Additional Resources
* [Documentation for writing Automate test scripts in PHP](https://www.browserstack.com/automate/php)
* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)
* [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)
* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)