Skip to content

Commit

Permalink
More human readable generate_config
Browse files Browse the repository at this point in the history
  • Loading branch information
metajiji authored Apr 28, 2017
1 parent be9bc7f commit ed8f62e
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions NodeFirefox/generate_config
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@

FIREFOX_VERSION=$( firefox -version | cut -d " " -f 3 )

echo "
cat <<_EOF
{
\"capabilities\": [
"capabilities": [
{
\"version\": \"$FIREFOX_VERSION\",
\"browserName\": \"firefox\",
\"maxInstances\": $NODE_MAX_INSTANCES,
\"seleniumProtocol\": \"WebDriver\",
\"applicationName\": \"$NODE_APPLICATION_NAME\"
"version": "$FIREFOX_VERSION",
"browserName": "firefox",
"maxInstances": $NODE_MAX_INSTANCES,
"seleniumProtocol": "WebDriver",
"applicationName": "$NODE_APPLICATION_NAME"
}
],
\"proxy\": \"org.openqa.grid.selenium.proxy.DefaultRemoteProxy\",
\"maxSession\": $NODE_MAX_SESSION,
\"port\": $NODE_PORT,
\"register\": true,
\"registerCycle\": $NODE_REGISTER_CYCLE,
\"nodePolling\": $NODE_POLLING,
\"unregisterIfStillDownAfter\": $NODE_UNREGISTER_IF_STILL_DOWN_AFTER,
\"downPollingLimit\": $NODE_DOWN_POLLING_LIMIT
}"
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": $NODE_MAX_SESSION,
"port": $NODE_PORT,
"register": true,
"registerCycle": $NODE_REGISTER_CYCLE,
"nodePolling": $NODE_POLLING,
"unregisterIfStillDownAfter": $NODE_UNREGISTER_IF_STILL_DOWN_AFTER,
"downPollingLimit": $NODE_DOWN_POLLING_LIMIT
}
_EOF

0 comments on commit ed8f62e

Please sign in to comment.