Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3810 by
haroo...@gmail.com: Grid 2 and browserName issues
http://code.google.com/p/selenium/issues/detail?id=3810
Steps to reproduce?
I am setting up Grid2 to replace our existing Selenium Grid 1.0.8 set up as
we have started writing WebDriver tests for the new projects, but as part
of that I need to make sure that it works for our existing Selenium RC
tests. In our current implementation we rely on the grid_configuration yml
file and Selenium HUB is responsible to assign machines based on the
configuration in the yml file. e.g.iexplore8-on-windows is mapped to
*iexplore and whenever a test requests for iexplore8-on-windows the HUB
will allocate a session from available RCs.
I am trying to emulate the same behaviour using Grid2.
I have run the Selenium HUB using the following command.
java -jar selenium-server-standalone-2.21.0.jar -role hub
I have registered 2 nodes using the following commands.
java -jar selenium-server-standalone-2.21.0.jar -role node -hub
http://HUB:4444/grid/register -browser
browserName=firefox3-on-windows,seleniumProtocol=Selenium
java -jar selenium-server-standalone-2.21.0.jar -role node -hub
http://HUB:4444/grid/register -browser
browserName=iexplore8-on-windows,seleniumProtocol=Selenium
These 2 nodes are successfully registered and I can see them on the
Selenium HUB Console with the correct browser name.
Our tests then make a request to get the Selenium Session with the
following statement.
startSeleniumSession(serverHost, serverPort, browser, appUrl);
Where browser is the browserName in this case.
But I get the following exception.
java.lang.RuntimeException: Could not start Selenium session:
org.openqa.grid.common.exception.GridException: Error forwarding the new
session The server returned an error : Failed to start new browser session:
Browser not supported: iexplore8-on-windows(Did you forget to add a
*?)Supported browsers include: *firefox *mock *firefoxproxy *pifirefox
*chrome *iexploreproxy *iexplore *firefox3 *safariproxy *googlechrome
*konqueror *firefox2 *safari *piiexplore *firefoxchrome *opera
*webdriver *iehta *custom
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at
com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage.startSeleniumSession(Unknown
Source)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: com.thoughtworks.selenium.SeleniumException:
org.openqa.grid.common.exception.GridException: Error forwarding the new
session The server returned an error : Failed to start new browser session:
Browser not supported: iexplore8-on-windows(Did you forget to add a
*?)Supported browsers include: *firefox *mock *firefoxproxy *pifirefox
*chrome *iexploreproxy *iexplore *firefox3 *safariproxy *googlechrome
*konqueror *firefox2 *safari *piiexplore *firefoxchrome *opera
*webdriver *iehta *custom
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at
com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
at
com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
at
com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
... 34 more
Selenium version: 2.21.0
OS: Windows
Browser: IE and Firefox
Browser version: IE 8, Firefox 3
I have seen someone mentioning about using the old grid_configuration yml
file for this kind of mapping, but this is also not working for me.
Please feel free to contact me in case of any questions.
Cheers,
Haroon