Skip to content

Grid hub update #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion integrations/selenium_grid/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
17 changes: 17 additions & 0 deletions integrations/selenium_grid/font_color
Original file line number Diff line number Diff line change
@@ -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}"
2 changes: 1 addition & 1 deletion integrations/selenium_grid/grid-hub
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Usage: grid-hub {start|stop}
#

source $(dirname $0)/util
source $(dirname $0)/font_color

EXPECTED_ARGS=1
E_BADARGS=65
Expand Down
2 changes: 1 addition & 1 deletion integrations/selenium_grid/grid-node
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Usage: grid-node {start|stop}
#

source $(dirname $0)/util
source $(dirname $0)/font_color

EXPECTED_ARGS=1
E_BADARGS=65
Expand Down