|
1 | 1 | # phpunit-browserstack |
2 | 2 |
|
3 | | -[PHPUnit](https://github.com/sebastianbergmann/phpunit) Integration with BrowserStack. |
| 3 | +[PHPUnit](https://github.com/sebastianbergmann/phpunit) Integration with BrowserStack |
4 | 4 |
|
5 | | -## Setup |
6 | | - |
7 | | -- Clone the repo |
8 | | -- Install dependencies `composer install` |
9 | | -- Update `*.conf.json` files inside the `config/` directory with your BrowserStack Username and Access Key. (These can be found in the [settings](https://www.browserstack.com/accounts/settings) section on BrowserStack accounts page) |
10 | | -- Alternatively, you can export the environment variables for the Username and Access Key of your BrowserStack account. `export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>` |
| 5 | + |
11 | 6 |
|
12 | | -### Run the tests |
13 | | - |
14 | | -- To run single test, run `composer single` |
15 | | -- To run parallel tests, run `composer parallel` |
16 | | -- To run local tests, run `composer local` |
| 7 | +## Setup |
| 8 | +* Clone the repo |
| 9 | +* Install dependencies `composer install` |
| 10 | +* Update `*.conf.json` files inside the `config/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) |
17 | 11 |
|
18 | | -### Notes |
| 12 | +## Running your tests |
| 13 | +* To run a single test, run `composer single` |
| 14 | +* To run parallel tests, run `composer parallel` |
| 15 | +* To run local tests, run `composer local` |
19 | 16 |
|
20 | | -- In order to test on different set of browsers, check out our [code generator](https://www.browserstack.com/automate/python#setting-os-and-browser) |
| 17 | +## Notes |
| 18 | +* You can view your test results on the [BrowserStack automate dashboard](https://www.browserstack.com/automate) |
| 19 | +* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/php#setting-os-and-browser) |
| 20 | +* You can export the environment variables for the Username and Access Key of your BrowserStack account |
| 21 | + |
| 22 | + ``` |
| 23 | + export BROWSERSTACK_USERNAME=<browserstack-username> && |
| 24 | + export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key> |
| 25 | + ``` |
| 26 | + |
| 27 | +## Additional Resources |
| 28 | +* [Documentation for writing automate test scripts in PHP](https://www.browserstack.com/automate/php) |
| 29 | +* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities) |
| 30 | +* [Browsers & mobile devices for selenium testing on BrowserStack](Browsers & Mobile Devices for Selenium Testing) |
| 31 | +* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api) |
0 commit comments