WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

WinAppDriver sessions timeout in Selenium Grid queue when sessions not available

Open AutoMcG opened this issue 6 years ago • 0 comments

I have followed the instructions in the FAQ to set up a hub and node configuration. Currently, I have 2 nodes under 1 hub.

Running 2 fixtures at the same time works just fine but running more than that causes problems. I believe the issue is when the Hub has 0 free slots and receives a request to start a new session. This request times out after 60 seconds with the exception message:

"OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:4444/wd/hub/session timed out after 60 seconds."

I am running unit tests using NUnit3 with the fixtures marked as parallel. When I initiate a test run, it starts each fixture in its own thread and thus we have many driver.start commands being issued around the same time. I can limit the number of threads NUnit can start at once but I'm having difficulty getting the OneTimeSetup and OneTimeTeardown to happen exactly as is needed to avoid starting the driver in one fixture before the driver is ended in another. I'm trying to look into working around this issue with changing my NUnit setup but I still have questions about the hub/node setup.

I am currently using a version of the selenium-standlone.jar based on 3.141.59 that runs also runs a custom servlet.

Is there something I'm missing with session management? Should I only be able to send jobs to the hub if it has slots open in the 60 seconds after driver.Start is called? Are there other settings I need to set in order for jobs to live in queue for longer (without adjusting global command timeout)?

AutoMcG avatar Mar 08 '20 22:03 AutoMcG