Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Fix https://issues.jenkins-ci.org/browse/JENKINS-23348 - selenium …
…configuration under jenkins 'manager jenkins' is not saved. 2. Remove deprecated and unused parameters from Configure System page: -rcDebug, -rcLog 3. Add parameter -browserTimeout 4. Set correct description for parameter -timeout (it was changed since selenium v2.21) 5. Remove code which terminates starting selenium node in #startSeleniumNode() in case getHostName() returns null. Reason: node hostname can be manually configured on node in case it is non-discoverable from master. In such case node will successfully starts.
- Loading branch information
Showing
9 changed files
with
108 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
...va/hudson/plugins/selenium/configuration/global/hostname/JenkinsRootHostnameResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
...in/java/hudson/plugins/selenium/configuration/global/hostname/StaticHostnameResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/resources/hudson/plugins/selenium/PluginImpl/help-browserTimeout.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div> | ||
Starting from selenium v2.21.0 | ||
<br/>Controls how long the browser is allowed to hang (value in <b>seconds</b>) | ||
<br/> | ||
The grid does not act on this value by itself, but passes the value on to the nodes, which do. | ||
Should be higher than the socket lock timeout (45 seconds) and generally higher than values used in webDriver.manage().timeouts() | ||
<br/><br/> | ||
See also | ||
<br/><a href="https://code.google.com/p/selenium/wiki/Grid2">https://code.google.com/p/selenium/wiki/Grid2</a> | ||
</div> |
8 changes: 4 additions & 4 deletions
8
src/main/resources/hudson/plugins/selenium/PluginImpl/help-newSessionWaitTimeout.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div> | ||
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. | ||
</div> | ||
Time in <b>ms</b> 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. | ||
</div> |
6 changes: 0 additions & 6 deletions
6
src/main/resources/hudson/plugins/selenium/PluginImpl/help-rcLog.html
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/main/resources/hudson/plugins/selenium/PluginImpl/help-rcLog_ja.html
This file was deleted.
Oops, something went wrong.
18 changes: 16 additions & 2 deletions
18
src/main/resources/hudson/plugins/selenium/PluginImpl/help-timeout.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
<div> | ||
Specify the number of seconds that the server will wait for the browser to respond to the previous command, or for the client driver to issue a new request. | ||
</div> | ||
Controls how long (value in <b>seconds</b>) the client is allowed to be gone before the session is reclaimed. | ||
Typically takes care of the client crashes. Working together with cleanup cycle (default is 5sec). | ||
Worst case scenario, a session can be idle for timeout + cleanup cycle before the timeout is detected. | ||
<br/> | ||
When elapsed the browser will be released for another test to use. | ||
To remove the timeout completely, specify -timeout 0 and the hub will never release the node. | ||
(Can be used when doing step-by-step debugging of client code) | ||
<br/> | ||
Default value is 30sec. | ||
<br/> | ||
Replaces the -nodeTimeout parameter starting from selenium v2.21.0 | ||
<br/><br/> | ||
See also: | ||
<br/> <a href="https://code.google.com/p/selenium/wiki/Grid2">https://code.google.com/p/selenium/wiki/Grid2</a> | ||
<br/> <a href="https://code.google.com/p/selenium/wiki/RemoteWebDriverServer">https://code.google.com/p/selenium/wiki/RemoteWebDriverServer</a> | ||
</div> |
1e3486b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also fix #39?