Update comments and ReadMe files

This commit is contained in:
Michael Mintz 2020-02-18 02:10:36 -05:00
parent 40dbf3f243
commit 53f4240aac
8 changed files with 16 additions and 8 deletions

View File

@ -24,7 +24,7 @@ pytest test_swag_labs.py --demo
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png" title="SeleniumBase" height="32"> Quick Start
* Requires **[Python](https://www.python.org/downloads/)** and **[Git](https://git-scm.com/)**
* [<img src="https://img.shields.io/pypi/pyversions/seleniumbase.svg?color=22AAEE" alt="Python versions" />](https://www.python.org/downloads/)
* [<img src="https://img.shields.io/pypi/pyversions/seleniumbase.svg?color=22AAEE" alt="Python:2.7|3.5|3.6|3.7|3.8" />](https://www.python.org/downloads/)
* A [Python virtual env](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) is recommended. <i>[See shortcut](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md).</i>
* Upgrade **[pip](https://pypi.org/project/pip/)** to prevent warnings:
```bash

View File

@ -1,7 +1,7 @@
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/SeleniumBaseText_F.png" title="SeleniumBase" align="center" height="38">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
### Automated Visual Regression Testing
[![TensorPy Tutorial](http://img.youtube.com/vi/erwkoiDeNzA/3.jpg)](https://www.youtube.com/watch?v=erwkoiDeNzA "Automated Visual Regression Testing")
[![Automated Visual Regression Testing](http://img.youtube.com/vi/erwkoiDeNzA/3.jpg)](https://www.youtube.com/watch?v=erwkoiDeNzA "Automated Visual Regression Testing")
(**[Watch the tutorial on YouTube](https://www.youtube.com/watch?v=erwkoiDeNzA)**)

View File

@ -35,7 +35,7 @@ pytest test_suite.py --reruns=1
pytest my_first_test.py --data="ABC,DEF"
# Run tests on a local Selenium Grid
pytest test_suite.py --server=127.0.0.1
pytest test_suite.py --server="127.0.0.1"
# Run tests on a remote Selenium Grid
pytest test_suite.py --server=IP_ADDRESS --port=4444

View File

@ -1,5 +1,9 @@
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_i.png" title="SeleniumBase" height="48">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
[<img src="http://img.youtube.com/vi/Sjzq9kU5kOw/0.jpg" title="SeleniumBase" height="150">](https://www.youtube.com/watch?v=Sjzq9kU5kOw)
(**[Watch an overview on YouTube](https://www.youtube.com/watch?v=Sjzq9kU5kOw)**)
<a id="feature_list"></a>
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png" title="SeleniumBase" height="32"> **Features:**
* A complete test automation framework for building & running reliable testing scripts.

View File

@ -45,7 +45,7 @@ If you want a visual tool to help make your MySQL life easier, [try MySQL Workbe
#### Prepare your MySQL DB
You can use the [testcaserepository.sql](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/testcaserepository.sql) file to create the necessary tables for storing test data.
You can use the [create_db_tables.sql](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/create_db_tables.sql) file to create the necessary tables for storing test data.
#### Configure your MySQL DB for SeleniumBase

View File

@ -4279,7 +4279,7 @@ class BaseCase(unittest.TestCase):
self.report_on = True
self.use_grid = False
if self.servername != "localhost":
# Use Selenium Grid (Use --server=127.0.0.1 for localhost Grid)
# Use Selenium Grid (Use --server="127.0.0.1" for a local Grid)
self.use_grid = True
if self.with_db_reporting:
from seleniumbase.core.application_manager import (

View File

@ -166,7 +166,9 @@ def pytest_addoption(parser):
dest='servername',
default='localhost',
help="""Designates the Selenium Grid server to use.
Default: localhost.""")
Use "127.0.0.1" to connect to a localhost Grid.
If unset or set to "localhost", Grid isn't used.
Default: "localhost".""")
parser.addoption('--port',
action='store',
dest='port',

View File

@ -82,7 +82,9 @@ class SeleniumBrowser(Plugin):
dest='servername',
default='localhost',
help="""Designates the Selenium Grid server to use.
Default: localhost.""")
Use "127.0.0.1" to connect to a localhost Grid.
If unset or set to "localhost", Grid isn't used.
Default: "localhost".""")
parser.add_option(
'--port',
action='store',
@ -327,7 +329,7 @@ class SeleniumBrowser(Plugin):
test.test.use_grid = False
test.test._reuse_session = False
if test.test.servername != "localhost":
# Use Selenium Grid (Use --server=127.0.0.1 for localhost Grid)
# Use Selenium Grid (Use --server="127.0.0.1" for localhost Grid)
test.test.use_grid = True
if "linux" in sys.platform and (
not self.options.headed and not self.options.headless):