Move "selenium_grid" to "seleniumbase/utilities"

This commit is contained in:
Michael Mintz 2018-08-14 01:31:45 -04:00
parent 87966aa30f
commit be1723a039
13 changed files with 32 additions and 31 deletions

View File

@ -1,29 +1 @@
## The Selenium Grid Hub ### The ReadMe for the Selenium Grid Hub Launcher has been moved to: [seleniumbase/utilities/selenium_grid/ReadMe.md](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md) and all related code has been moved to [seleniumbase/utilities/selenium_grid](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid)
The Selenium Grid Hub lets you distribute tests to run in parallel across multiple node machines. Each node machine can then run its own allocation of tests. This allows you to run a large suite of tests very quickly.
### Running the Selenium Grid Hub
The following commands will work once you've installed seleniumbase, which comes with the seleniumbase console scripts interface.
Grid Hub server controls:
```bash
seleniumbase grid-hub {start|stop|restart} [OPTIONS]
```
Options:
* ``-v``, ``--verbose`` (Increases verbosity of logging output.)
Grid node server controlls:
```bash
seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]
```
Options:
* ``-v``, ``--verbose`` (Increases verbosity of logging output.)
* ``--hub=[HUB_IP]`` (Specifies the Grid Hub to connect to. Default: "127.0.0.1".)
When the Grid Hub Console is up and running, you'll be able to find it here: [http://127.0.0.1:4444/grid/console](http://127.0.0.1:4444/grid/console)
#### 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)
* [https://github.com/SeleniumHQ/selenium/wiki](https://github.com/SeleniumHQ/selenium/wiki/Grid2)

View File

@ -0,0 +1,29 @@
## The Selenium Grid Hub
The Selenium Grid Hub lets you distribute tests to run in parallel across multiple node machines. Each node machine can then run its own allocation of tests. This allows you to run a large suite of tests very quickly.
### Running the Selenium Grid Hub
The following commands will work once you've installed seleniumbase, which comes with the seleniumbase console scripts interface.
Grid Hub server controls:
```
seleniumbase grid-hub {start|stop|restart} [OPTIONS]
```
Options:
* ``-v``, ``--verbose`` (Increases verbosity of logging output.)
Grid node server controlls:
```
seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]
```
Options:
* ``-v``, ``--verbose`` (Increases verbosity of logging output.)
* ``--hub=[HUB_IP]`` (Specifies the Grid Hub to connect to. Default: "127.0.0.1".)
When the Grid Hub Console is up and running, you'll be able to find it here: [http://127.0.0.1:4444/grid/console](http://127.0.0.1:4444/grid/console)
#### 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)
* [https://github.com/SeleniumHQ/selenium/wiki](https://github.com/SeleniumHQ/selenium/wiki/Grid2)

View File

@ -49,7 +49,7 @@ def main():
file.writelines("\r\n".join(data)) file.writelines("\r\n".join(data))
file.close() file.close()
from integrations.selenium_grid import download_selenium_server from seleniumbase.utilities.selenium_grid import download_selenium_server
download_selenium_server.main() # Nothing happens if already exists download_selenium_server.main() # Nothing happens if already exists
if "linux" in sys.platform or "darwin" in sys.platform: if "linux" in sys.platform or "darwin" in sys.platform:

View File

@ -60,7 +60,7 @@ def main():
file.writelines("\r\n".join(data)) file.writelines("\r\n".join(data))
file.close() file.close()
from integrations.selenium_grid import download_selenium_server from seleniumbase.utilities.selenium_grid import download_selenium_server
download_selenium_server.main() # Nothing happens if already exists download_selenium_server.main() # Nothing happens if already exists
if "linux" in sys.platform or "darwin" in sys.platform: if "linux" in sys.platform or "darwin" in sys.platform: