Update the docs

This commit is contained in:
Michael Mintz 2018-11-06 17:51:16 -05:00
parent b3f2a4af3d
commit 293fd37fd0
2 changed files with 15 additions and 3 deletions

View File

@ -45,14 +45,20 @@ You can interchange **pytest** with **nosetests**, but using pytest is strongly
(NOTE: If you're using **pytest** for running tests outside of the SeleniumBase repo, **you'll want a copy of [pytest.ini](https://github.com/seleniumbase/SeleniumBase/blob/master/pytest.ini) at the base of the new folder structure**. If using **nosetests**, the same applies for [setup.cfg](https://github.com/seleniumbase/SeleniumBase/blob/master/setup.cfg).)
#### **Running tests on [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid (or your own):**
#### **Running tests on [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid, the [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) Selenium Grid, (or your own):**
Here's how to connect to a BrowserStack server for running tests:
Here's how to connect to a BrowserStack Selenium Grid server for running tests:
```bash
pytest my_first_test.py --server=username:key@hub.browserstack.com --port=80
```
Here's how to connect to a Sauce Labs Selenium Grid server for running tests:
```bash
pytest my_first_test.py --server=username:key@ondemand.saucelabs.com --port=80
```
Or you can create your own Selenium Grid for test distribution. ([See this ReadMe for details](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md))
#### **Example tests using Logging:**

View File

@ -29,12 +29,18 @@ Now you can run your tests on the Selenium Grid:
pytest my_test_suite.py --server=IP_ADDRESS --port=4444
```
You can also run your tests on [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid (and not worry about managing your own Selenium Grid):
You can also run your tests on [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid server (and not worry about managing your own Selenium Grid):
```
pytest my_first_test.py --server=username:key@hub.browserstack.com --port=80
```
And you can run your tests on the [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) Selenium Grid server:
```
pytest my_first_test.py --server=username:key@ondemand.saucelabs.com --port=80
```
#### More info about the Selenium Grid Hub can be found here:
* [https://github.com/SeleniumHQ/selenium/wiki/Grid2](https://github.com/SeleniumHQ/selenium/wiki/Grid2)