Add TestingBot support

This commit is contained in:
jochen 2018-11-21 10:20:32 +01:00
parent 162ce064a1
commit 355a996acd
3 changed files with 16 additions and 3 deletions

View File

@ -10,6 +10,7 @@ In addition to [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/m
* Choose whether to run tests multi-threaded
* Choose a BrowserStack server to run on
* Choose a Sauce Labs server to run on
* Choose a TestingBot server to run on
* Choose a Selenium Grid to connect to
* Choose a database to save results to
* Choose a proxy server to connect to
@ -46,7 +47,7 @@ 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, the [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) 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, the [TestingBot](https://testingbot.com/features) Selenium Grid, (or your own):**
Here's how to connect to a BrowserStack Selenium Grid server for running tests:
@ -60,6 +61,12 @@ Here's how to connect to a Sauce Labs Selenium Grid server for running tests:
pytest my_first_test.py --server=username:key@ondemand.saucelabs.com --port=80
```
Here's how to connect to a TestingBot Selenium Grid server for running tests:
```bash
pytest my_first_test.py --server=username:key@hub.testingbot.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

@ -15,7 +15,7 @@
* Can handle Google Authenticator logins by using the [Python one-time password library](https://pyotp.readthedocs.io/en/latest/).
* Includes a hybrid-automation solution called **[MasterQA](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md)** to speed up manual testing.
* Includes integrations with [MySQL](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/testcase_manager.py), [Selenium Grid](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_grid), [Google Cloud](https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/google_cloud/ReadMe.md), [Amazon S3](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/s3_logging_plugin.py), and [NodeJS](https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/node_js).
* Has the ability to connect to a [BrowserStack](https://www.browserstack.com/automate#) or [Sauce Labs](https://saucelabs.com/products/web-testing/cross-browser-testing) Selenium Grid server.
* Has the ability to connect to a [BrowserStack](https://www.browserstack.com/automate#), [Sauce Labs](https://saucelabs.com/products/web-testing/cross-browser-testing) Selenium Grid server or [TestingBot](https://testingbot.com/features) Selenium Grid.
* Includes a [tool to convert Selenium IDE recordings](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_ide) into clean, robust SeleniumBase scripts.
* Written in Python, but can also make JavaScript calls using ``self.execute_script()``.
* Includes useful Python decorators and password obfuscation methods. ([Learn more here](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/common/ReadMe.md))

View File

@ -35,12 +35,18 @@ You can also run your tests on [BrowserStack](https://www.browserstack.com/autom
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:
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
```
And you can run your tests on the [TestingBot](https://testingbot.com/features) Selenium Grid server:
```
pytest my_first_test.py --server=username:key@hub.testingbot.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)