Webdriver-selenium Grid Configuration

Source: Internet
Author: User
Tags selenium grid

Grid parameter:

Role =
# Hub Config
Host = (Hub & node) <ip | Hostname>: Usually not needed and determined automatically. For exotic network configuration, network with VPN, specifying the host might is necessary.
Port = (Hub & node) <xxxx>: The port the Remote/hub would listen on. Default to 4444.


Throwoncapabilitynotpresent = (hub) <true | False> default to True. If true, the hub would reject test requests right away if no proxy was currently registered that can host that capability. Set it to false to has the request queued until a node supporting the capability is added to the grid.
Newsessionwaittimeout = (hub) <xxxx>. Default to No timeout (-1) The time of the MS after which a new test waiting for a node to become available would time out. When that happens, the test would throw an exception before starting a browser.

Capabilitymatcher = (hub) A class implementing the Capabilitymatcher interface. Defaults to Org.openqa.grid.internal.utils.DefaultCapabilityMatcher. Specify the logic the hub would follow to define if a request can is assigned to a node. Change this class if you want to has the matching process use regular expression instead of exact match for the version O f the browser for instance. All the nodes of a grid instance would use the same matcher and defined by the registry.
Prioritizer = (hub) A class implementing the Prioritizer interface. Default to null (no priority = FIFO). Specify a custom Prioritizer if you need the grid to process the tests from the CI, or the IE tests first for instance.
Servlets = (Hub & node) <com.mycompany.MyServlet,com.mycompany.MyServlet2> to register a new servlet on the hub/ Node. The servlet would accessible under the Path/grid/admin/myservlet/grid/admin/myservlet2


Grid1yml = (hub) A YML file following grid1 format.
Hubconfig = (hub) A JSON file following GRID2 format that defines the hub properties.
Nodeconfig = (node) a JSON file following GRID2 format that defines the node properties.


# config that'll be inherited by the proxy and used for the node management.
Cleanupcycle = (node) <XXXX> in Ms. How often a proxy would check for timed out thread.
Timeout = (node) <XXXX> the timeout in seconds before the hub automatically ends a test this hasn ' t had any activity The last X seconds. The browser would be a released for another test. This typically takes care of the client crashes.
Browsertimeout= (Hub/node) The timeout in seconds a browser can hang
Hub = (node) Hubhost = (node) <ip | Hostname>: The host address of a hub the registration request should is sent to. Default to localhost. Option-hub takes precedence over this option.
Hubport = (node) <xxxx>: The port listened by a hub the registration request should is sent to. Default to 4444. Option-hub takes precedence over this option.
Proxy = (node) The class that is used to represent the node. By default Org.openqa.grid.selenium.proxy.DefaultRemoteProxy.
Maxsession = (node) max number of tests that can run at the same time on the node, independently of the browser used.
Registercycle = (node) How often in MS the node would try to register itself again. Allow to restart the hub without have to restart the nodes.
Nodepolling = (node) in Ms. Interval between alive checks of node how often the hub checks if the node is still alive.
Unregisterifstilldownafter = (node) in Ms. If the node remains to more than Unregisterifstilldownafter millisec, it Would disappear from the hub. Default is 1min.
Downpollinglimit = (node) node is marked as under after Downpollinglimit alive checks.
Nodestatuschecktimeout = (node) in Ms. Connection and socket timeout which are used for node alive check.

Relate page:

Https://code.google.com/p/selenium/wiki/Grid2

Https://code.google.com/p/selenium/source/browse/java/server/src/org/openqa/grid/common/defaults/DefaultNode.json

Https://code.google.com/p/selenium/source/browse/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json

Webdriver-selenium Grid Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.