You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small overhaul to the command-line parameter documentation (#2383)
Improving several things here:
- Consistent labeling of parameter type
- Adding units (seconds, milliseconds, etc) to all options where necessary
- Listing default values
- Improving clarity of messages with consistency of terms, etc and various word usements
Fixing indentation in one place
Copy file name to clipboardExpand all lines: java/server/src/org/openqa/grid/internal/utils/configuration/GridConfiguration.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,32 +28,32 @@ public class GridConfiguration extends StandaloneConfiguration {
28
28
29
29
@Parameter(
30
30
names = "-cleanUpCycle",
31
-
description = "<Integer> in ms. How often a proxy on the hub will check for timedout thread. Must have timeout option specified also"
31
+
description = "<Integer> in ms : specifies how often the hub will poll running proxies for timed-out (i.e. hung) threads. Must also specify \"timeout\" option"
description = "<IP | hostname> : usually not needed and determined automatically. For exotic network configuration, network with VPN, specifying the host might be necessary."
44
+
description = "<String> IP or hostname : usually determined automatically. Most commonly useful in exotic network configurations (e.g. network with VPN)"
45
45
)
46
46
publicStringhost;
47
47
48
48
@Parameter(
49
49
names = "-maxSession",
50
-
description = "<Integer> max number of tests that can run at the same time on the node, independently of the browser used."
50
+
description = "<Integer> max number of tests that can run at the same time on the node, irrespective of the browser used"
51
51
)
52
52
publicIntegermaxSession = 1;
53
53
54
54
@Parameter(
55
55
names = {"-servlet", "-servlets"},
56
-
description = "list of extra servlets this hub will display. Allows to present custom view of the hub for monitoring and management purpose. Specify multiple on the command line: -servlet tld.company.ServletA -servlet tld.company.ServletB. The servlet will accessible under the path /grid/admin/ServletA /grid/admin/ServletB"
56
+
description = "<String> : list of extra servlets this hub will display. Allows to present custom view of the hub for monitoring and management purposes. Specify multiple on the command line: -servlet tld.company.ServletA -servlet tld.company.ServletB. The servlet must exist in the path: /grid/admin/ServletA /grid/admin/ServletB"
Copy file name to clipboardExpand all lines: java/server/src/org/openqa/grid/internal/utils/configuration/GridHubConfiguration.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -38,39 +38,39 @@ public class GridHubConfiguration extends GridConfiguration {
38
38
39
39
@Parameter(
40
40
names = "-hubConfig",
41
-
description = "a JSON file following grid2 format that defines the hub properties."
41
+
description = "<String> filename: a JSON file (following grid2 format), which defines the hub properties"
42
42
)
43
43
publicStringhubConfig;
44
44
45
45
@Parameter(
46
46
names = "-jettyMaxThreads",
47
-
description = "max number of thread for Jetty. Default is normally 255."
47
+
description = "<Integer> : max number of thread for Jetty. Default is 255"
48
48
)
49
49
publicIntegerjettyMaxThreads;
50
50
51
51
@Parameter(
52
52
names = {"-matcher", "-capabilityMatcher"},
53
-
description = "a class implementing the CapabilityMatcher interface. Defaults to org.openqa.grid.internal.utils.DefaultCapabilityMatcher. Specify the logic the hub will follow to define if a request can be assigned to a node.Change this class if you want to have the matching process use regular expression instead of exact match for the version of the browser for instance. All the nodes of a grid instance will use the same capabilityMatcher, defined by the registry.",
53
+
description = "<String> class name : a class implementing the CapabilityMatcher interface. Specifies the logic the hub will follow to define whether a request can be assigned to a node. For example, if you want to have the matching process use regular expressions instead of exact match when specifying browser version. ALL nodes of a grid ecosystem would then use the same capabilityMatcher, as defined here. Default is org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
description = "<Integer> milliseconds. Default to no timeout ( -1 ) the time in ms after which a new test waiting for a node to become available will time out.When that happens, the test will throw an exception before starting a browser."
60
+
description = "<Integer> in ms : The time after which a new test waiting for a node to become available will time out.When that happens, the test will throw an exception before attempting to start a browser. Defaults to no timeout ( -1 )"
61
61
)
62
62
publicIntegernewSessionWaitTimeout = -1;
63
63
64
64
@Parameter(
65
65
names = "-prioritizer",
66
-
description = "a class implementing the Prioritizer interface. Default to null ( no priority = FIFO ).Specify a custom prioritizer if you want to sort the order new session requests are processed when there is a queue.",
66
+
description = "<String> class name : a class implementing the Prioritizer interface. Specify a custom Prioritizer if you want to sort the order in which new session requests are processed when there is a queue. Default to null ( no priority = FIFO )",
67
67
converter = PrioritizerString.class
68
68
)
69
69
publicPrioritizerprioritizer = null;
70
70
71
71
@Parameter(
72
72
names = "-throwOnCapabilityNotPresent",
73
-
description = "<true | false> default to true. If true, the hub will reject test requests right away if no proxy is currently registered that can host that capability.Set it to false to have the request queued until a node supporting the capability is added to the grid."
73
+
description = "<Boolean> true or false : If true, the hub will reject all test requests if no compatible proxy is currently registered. If set to false, the request will queue until a node supporting the capability is registered with the grid. Default is true"
74
74
)
75
75
publicBooleanthrowOnCapabilityNotPresent = true;
76
76
@@ -103,7 +103,7 @@ public Prioritizer convert(String prioritizerClass) {
description = "<Integer> node is marked as downafter downPollingLimit alive checks."
49
+
description = "<Integer> : node is marked as \"down\" if the node hasn't responded after the number of checks specified in [downPollingLimit]. Default is 2"
50
50
)
51
51
publicIntegerdownPollingLimit;
52
52
53
53
@Parameter(
54
54
names = "-hub",
55
-
description = "<http://localhost:4444/grid/register> : the url that will be used to post the registration request. This option takes precedence over -hubHost and -hubPort options."
55
+
description = "<String> (e.g. http://localhost:4444/grid/register) : the url that will be used to post the registration request. This option takes precedence over -hubHost and -hubPort options"
56
56
)
57
57
publicStringhub;
58
58
59
59
@Parameter(
60
60
names = "-hubHost",
61
-
description = "<IP | hostname> : the host address of a hub the registration request should be sent to. Default to localhost. Option -hub takes precedence over this option."
61
+
description = "<String> IP or hostname : the host address of the hub we're attempting to register with. If \"role\" is set to [hub], this option will be ignored. Default is localhost"
62
62
)
63
63
StringhubHost;
64
64
65
65
@Parameter(
66
66
names = "-hubPort",
67
-
description = "<Integer> : the port listened by a hub the registration request should be sent to. Default to 4444. Option -hub takes precedence over this option."
67
+
description = "<Integer> : the port of the hub we're attempting to register with. If \"role\" is set to [hub], this option will be ignored. Default to 4444"
68
68
)
69
69
IntegerhubPort;
70
70
71
71
@Parameter(
72
72
names = "-nodeConfig",
73
-
description = "<file> json configuration file for the node, overrides default values."
73
+
description = "<String> filename : JSON configuration file for the node. Overrides default values"
74
74
)
75
75
publicStringnodeConfigFile;
76
76
77
77
@Parameter(
78
78
names = "-nodePolling",
79
-
description = "<Integer> in ms. Interval between alive checks of node how often the hub checks if the node is still alive."
79
+
description = "<Integer> in ms : specifies how often the hub will poll to see if the node is still responding"
80
80
)
81
81
publicIntegernodePolling;
82
82
83
83
@Parameter(
84
84
names = "-nodeStatusCheckTimeout",
85
-
description = "<Integer> in ms. Connection and socket timeout which is used for node alive check."
85
+
description = "<Integer> in ms : connection/socket timeout, used for node \"nodePolling\" check"
86
86
)
87
87
publicIntegernodeStatusCheckTimeout;
88
88
89
89
@Parameter(
90
90
names = "-proxy",
91
-
description = "<String> the class that will be used to represent the node. By default org.openqa.grid.selenium.proxy.DefaultRemoteProxy."
91
+
description = "<String> : the class used to represent the node proxy. Default is [org.openqa.grid.selenium.proxy.DefaultRemoteProxy]"
92
92
)
93
93
publicStringproxy;
94
94
95
95
@Parameter(
96
96
names = "-register",
97
-
description = "include this command line option if you want the node to automatically re-register itself with a grid hub if the hub becomes unavailable. Default is disabled."
97
+
description = "if specified, node will attempt to re-register itself automatically with its known grid hub if the hub becomes unavailable. Default is disabled"
98
98
)
99
99
publicBooleanregister;
100
100
101
101
@Parameter(
102
102
names = "-registerCycle",
103
-
description = "<Integer> how often in ms the node will try to register itself again.Allow to restart the hub without having to restart the nodes."
103
+
description = "<Integer> in ms : specifies how often the node will try to register itself again. Allows administrator to restart the hub without restarting (or risk orphaning) registered nodes. Must be specified with the \"-register\" option"
104
104
)
105
105
publicIntegerregisterCycle;
106
106
107
107
@Parameter(
108
108
names = "-unregisterIfStillDownAfter",
109
-
description = "<Integer> in ms. If the node remains down for more than unregisterIfStillDownAfter millisec, it will disappear from the hub.Default is 1min."
109
+
description = "<Integer> in ms : if the node remains down for more than [unregisterIfStillDownAfter] ms, it will step attempting to re-register from the hub.Default is 6000 (1 minute)"
Copy file name to clipboardExpand all lines: java/server/src/org/openqa/grid/internal/utils/configuration/StandaloneConfiguration.java
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -29,58 +29,63 @@ public class StandaloneConfiguration {
29
29
30
30
@Parameter(
31
31
names = "-browserTimeout",
32
-
description = "Number of seconds a browser is allowed to hang (0 means indefinite) while a command is running (example: driver.get(url)). If set, must be greater than or equal to 60. When the timeout is reached while a command is processing, the session will quit.")
32
+
description = "<Integer> in seconds : number of seconds a browser session is allowed to hang (0 means indefinite) while a WebDriver command is running (example: driver.get(url)). If the timeout is reached while a WebDriver command is still processing, the session will quit. Minimum value is 60. Default is 0"
description = "The filename to use for logging. Default value is null and indicates logging to STDOUT."
58
+
description = "<String> filename : the filename to use for logging. If omitted, will log to STDOUT"
56
59
)
57
60
publicStringlog;
58
61
59
62
@Parameter(
60
63
names = "-logLongForm",
61
-
description = "if no log is specified, logLongForm can be set to enable longForm output to STDOUT. Default is false"
64
+
description = "<Boolean> : if specified, all log statements (including to log file from \"log\" parameter) will include the Thread ID"
62
65
)
63
66
publicbooleanlogLongForm;
64
67
65
68
@Parameter(
66
69
names = {"-port"},
67
-
description = "The port number the selenium server should use. Default's to 4444. When role is a grid node default is 5555.")
70
+
description = "<Integer> : the port number the server will use. Defaults to [4444]. When \"role\" is a set to [node], default is [5555]"
71
+
)
68
72
publicIntegerport;
69
73
70
74
@Parameter(
71
75
names = "-role",
72
-
description = "server role to run as. Options are hub, node, standalone. Default is standalone"
76
+
description = "<String> options are [hub], [node], or [standalone] : Default is [standalone]"
73
77
)
74
-
publicStringrole;
78
+
publicStringrole = "standalone";
75
79
76
80
@Parameter(
77
81
names = {"-timeout", "-sessionTimeout"},
78
-
description = "<Integer> the timeout in seconds before the hub automatically ends a test that hasn't had any activity in the last X seconds. The browser will be released for another test to use. This typically takes care of the client crashes. For grid hub/node roles, CleanUpCycle must also be set. Default is 1800 (30 minutes)")
82
+
description = "<Integer> in seconds : Specifies the timeout before the hub automatically kills a session that hasn't had any activity in the last X seconds. The test slot will then be released for another test to use. This is typically used to take care of client crashes. For grid hub/node roles, cleanUpCycle must also be set. Default is 1800 (30 minutes)"
83
+
)
79
84
publicIntegertimeout = 1800;
80
85
81
86
@Parameter(
82
87
names = {"-avoidProxy"},
83
-
description = "DO NOT USE. Hack to allow selenium 3.0 server run in saucelabs"
88
+
description = "DO NOT USE. Hack to allow selenium 3.0 server run in SauceLabs"
0 commit comments