diff --git a/integrations/selenium_grid/ReadMe.md b/integrations/selenium_grid/ReadMe.md index 2ad436fb459..58ba9c02e11 100644 --- a/integrations/selenium_grid/ReadMe.md +++ b/integrations/selenium_grid/ReadMe.md @@ -12,13 +12,22 @@ Now you can start up the Grid Hub: ```bash ./grid-hub start ``` -Now add a Grid Node to the Grid Hub: +Now you can add a Grid Node to the Grid Hub: ```bash ./grid-node start ``` (NOTE: If the Grid Node is not running on the same machine as the Grid Hub, update the address from the script.) You should be able to see the Grid Console up and running from here: [http://0.0.0.0:4444/grid/console](http://0.0.0.0:4444/grid/console) (NOTE: That's the address if you're running locally from localhost.) +You can remove a Grid Node from the Grid Hub with: +```bash +./grid-node stop +``` +You can stop the Grid Hub at anytime with: +```bash +./grid-hub stop +``` + #### More detailed info about connecting to the Selenium Grid Hub can be found here: * [https://theintern.github.io/intern/#selenium-grid](https://theintern.github.io/intern/#selenium-grid) * [https://github.com/SeleniumHQ/selenium/wiki/Grid2](https://github.com/SeleniumHQ/selenium/wiki/Grid2) diff --git a/integrations/selenium_grid/font_color b/integrations/selenium_grid/font_color new file mode 100755 index 00000000000..3dd0a58146d --- /dev/null +++ b/integrations/selenium_grid/font_color @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# Text color variables +txtund=$(tput sgr 0 1) # Underline +txtbld=$(tput bold) # Bold +regred=$(tput setaf 1) # Red +regblu=$(tput setaf 4) # Blue +reggrn=$(tput setaf 2) # Green +regwht=$(tput setaf 7) # White +txtrst=$(tput sgr0) # Reset +info=${regwht}*${txtrst} # Feedback +pass=${regblu}*${txtrst} +warn=${regred}*${txtrst} +ques=${regblu}?${txtrst} + +FAIL_MSG="${regred}[FAILURE]${txtrst}" +SUCCESS_MSG="${reggrn}[SUCCESS]${txtrst}" diff --git a/integrations/selenium_grid/grid-hub b/integrations/selenium_grid/grid-hub index 5982305de03..4214d0809eb 100755 --- a/integrations/selenium_grid/grid-hub +++ b/integrations/selenium_grid/grid-hub @@ -4,7 +4,7 @@ # Usage: grid-hub {start|stop} # -source $(dirname $0)/util +source $(dirname $0)/font_color EXPECTED_ARGS=1 E_BADARGS=65 diff --git a/integrations/selenium_grid/grid-node b/integrations/selenium_grid/grid-node index 962a4c7723b..7b496666480 100755 --- a/integrations/selenium_grid/grid-node +++ b/integrations/selenium_grid/grid-node @@ -4,7 +4,7 @@ # Usage: grid-node {start|stop} # -source $(dirname $0)/util +source $(dirname $0)/font_color EXPECTED_ARGS=1 E_BADARGS=65