Hello,

I'm trying to get clarification and a definitive answer of whether the
following settings in the hubConfig.json file should be specified as
milliseconds or seconds:

timeout
browserTimeout
nodePolling
cleanUpCycle

On the wiki page for grid 2 here:
https://code.google.com/p/selenium/wiki/Grid2 - It states that the timeout
value should be specified as seconds.

After much searching and reading around, many have said that these values
should actually be specified as milliseconds (see:
https://code.google.com/p/selenium/issues/detail?id=4566 and the default
hubConfig.json file here looks to have it in ms:
https://code.google.com/p/selenium/source/browse/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json
)

Can someone provide a definitive answer as to whether the above settings
should be in milliseconds or seconds?

As a side question on this topic, i am using C# WebDriver bindings to
connect to the grid. When i instantiate the browser on the grid, i use the
following code to specify a commandTimeout of 60 seconds:

IWebDriver browser = new RemoteWebDriver(hubUrl, capabilities, new
TimeSpan(0, 0, 0, 60));

Does the timeout or browserTimeout settings in the hubConfig.json file
override the commandTimeout i specify when instantiating the browser on the
grid? Or does this commandTimeout setting have a different purpose (if so
explain please)?

Any help with these questions would be much appreciated, thanks!


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5a2db0b3-d99c-477d-a68f-9a4e2afab489%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Krishnan Mahadevan at Sep 12, 2014 at 12:51 pm
    Mark,
    Here's what I have managed to figure out so far [ after browsing through
    the source code of Grid ]

        - *timeout* - This value should be specified in milliseconds because
        this is internally used by BaseRemoteProxy to determine if a given slot
        should be cleaned up or not. A slot (TestSlot) in the Grid world represents
        1 desired capability in a node (for e.g., firefox, ie or chrome) etc., So
        if a node wants to support firefox, IE, chrome, it will have 3 slots.
        - *browserTimeout* - This value should be specified in milliseconds,
        because this is internally being passed into HttpClient as a value for
        "http.connection.timeout".
        - *nodePolling* - This value should be specified in milliseconds,
        because this value is used within a Thread.sleep() [ Thread.sleep() takes
        ms ] within the DefaultRemoteProxy to help the grid figure out if a given
        node is "Not reachable" or if a given node has "unregistered" itself.
        - *cleanupCycle* - This value should be specified in milliseconds,
        because this value determines how long should the cleanup thread that
        resides in the BaseRemoteProxy sleep, before it attempts to start looking
        at each of the test slots in a given node and attempt to cleanup inactive
        sessions.


    In terms of your question onf the TimeSpan, I think I will let Jim give you
    the definite answer because the Java bindings dont have a 3 argument
    RemoteWebDriver which accepts timeouts.

    Hope that helps.



    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"
    My Scribblings @ http://wakened-cognition.blogspot.com/
    My Technical Scribbings @ http://rationaleemotions.wordpress.com/
    On Fri, Sep 12, 2014 at 1:25 AM, Mark Kabana wrote:

    Hello,

    I'm trying to get clarification and a definitive answer of whether the
    following settings in the hubConfig.json file should be specified as
    milliseconds or seconds:

    timeout
    browserTimeout
    nodePolling
    cleanUpCycle

    On the wiki page for grid 2 here:
    https://code.google.com/p/selenium/wiki/Grid2 - It states that the
    timeout value should be specified as seconds.

    After much searching and reading around, many have said that these values
    should actually be specified as milliseconds (see:
    https://code.google.com/p/selenium/issues/detail?id=4566 and the default
    hubConfig.json file here looks to have it in ms:
    https://code.google.com/p/selenium/source/browse/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json
    )

    Can someone provide a definitive answer as to whether the above settings
    should be in milliseconds or seconds?

    As a side question on this topic, i am using C# WebDriver bindings to
    connect to the grid. When i instantiate the browser on the grid, i use the
    following code to specify a commandTimeout of 60 seconds:

    IWebDriver browser = new RemoteWebDriver(hubUrl, capabilities, new
    TimeSpan(0, 0, 0, 60));

    Does the timeout or browserTimeout settings in the hubConfig.json file
    override the commandTimeout i specify when instantiating the browser on the
    grid? Or does this commandTimeout setting have a different purpose (if so
    explain please)?

    Any help with these questions would be much appreciated, thanks!


    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/selenium-users/5a2db0b3-d99c-477d-a68f-9a4e2afab489%40googlegroups.com
    <https://groups.google.com/d/msgid/selenium-users/5a2db0b3-d99c-477d-a68f-9a4e2afab489%40googlegroups.com?utm_medium=email&utm_source=footer>
    .
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm1YgXeUbhtr3skO4Wnr%2B2o9U8CyCrGVnUMacMbOOnqyQ%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedSep 12, '14 at 4:39a
activeSep 12, '14 at 12:51p
posts2
users2
websiteseleniumhq.org

2 users in discussion

Krishnan Mahadevan: 1 post Mark Kabana: 1 post

People

Translate

site design / logo © 2022 Grokbase