From 0c17bdef6e1948a73466d1cd0e50365a76d1883b Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 17 Feb 2016 14:49:03 -0500 Subject: [PATCH 1/2] Font color styling for the Selenium Grid --- integrations/selenium_grid/font_color | 17 +++++++++++++++++ integrations/selenium_grid/grid-hub | 2 +- integrations/selenium_grid/grid-node | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 integrations/selenium_grid/font_color 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 From b2d8a19cb77ca168f7a89f29ed00d5baf507101d Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 17 Feb 2016 14:49:55 -0500 Subject: [PATCH 2/2] Update the Selenium Grid ReadMe --- integrations/selenium_grid/ReadMe.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)