Selenium Grid-到集线器的远程控制连接-注册失败,但构建成功

Selenium Grid-到集线器的远程控制连接-注册失败,但构建成功,selenium,selenium-grid,Selenium,Selenium Grid,我已在本地计算机上成功运行Selenium网格,并已将其移动到服务器(windows server 2008 R2) 服务器实例已使用本地启动的代理成功运行 服务器托管控制台在internet上可见 然而,当我在另一台机器上创建一个新的遥控器时,它们成功地构建了,但没有注册到集线器 命令行是: ant -Dport=6601 -Dhost=<ip address of my box> -DhubURL=http://ab.cdefg.ca:4444/wd/hub* -Denviron

我已在本地计算机上成功运行Selenium网格,并已将其移动到服务器(windows server 2008 R2)

服务器实例已使用本地启动的代理成功运行 服务器托管控制台在internet上可见

然而,当我在另一台机器上创建一个新的遥控器时,它们成功地构建了,但没有注册到集线器

命令行是:

ant -Dport=6601 -Dhost=<ip address of my box> -DhubURL=http://ab.cdefg.ca:4444/wd/hub* -Denvironment"firefox" launch-remote-control
如果您指定了DenEnvironment,我将返回以下内容:

      C:\Sgrid\selenium-grid-1.0.8>ant -Dport=6601 -Dhost=pcname.subdomain.domain.ca -Dhu
    bURL=http://ab.cdefg.ca:4444/wd/hub* launch-remote-control
    Buildfile: C:\Sgrid\selenium-grid-1.0.8\build.xml

    launch-remote-control:
         [java] Sep 15, 2011 3:37:11 PM com.thoughtworks.selenium.grid.remotecontrol
    .RegistrationRequest execute
         [java] INFO: Registering to http://ab.cdefg.ca.ca:4444/wd/hub*/registration
    -manager/register
         [java] Exception in thread "main" java.lang.IllegalStateException: Could no
    t register successfuly to http://ab.cdefg.ca.ca:4444/wd/hub*/registration-manage
    r/register with environment '*firefox'. Most likely this environment is not defi
    ned on the hub.
         [java]     at com.thoughtworks.selenium.grid.remotecontrol.RegistrationRequ
    est.execute(RegistrationRequest.java:29)
         [java]     at com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringR
    emoteControl.register(SelfRegisteringRemoteControl.java:29)
         [java]     at com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringR
    emoteControlLauncher.main(SelfRegisteringRemoteControlLauncher.java:27)

    BUILD FAILED
    C:\Sgrid\selenium-grid-1.0.8\build.xml:90: Java returned: 1

Total time: 1 second
C:\Sgrid\selenium-grid-1.0.8>ant -Dport=6601 -Dhost=pcname.sub.domain.ca -Dhu
bURL=http://ab.cdefg.ca:4444 -Denvironment"firefox" launch-remote-control
Buildfile: C:\Sgrid\selenium-grid-1.0.8\build.xml

BUILD SUCCESSFUL
Total time: 0 seconds

C:\Sgrid\selenium-grid-1.0.8>
但是,控制台无法识别或使用此代理。该代理也不在屏幕上可见

所以我想,我会将其反转,并使用我的本地服务器作为服务器,尝试将服务器注册为远程控制,但同样的问题再次出现,命令行成功,但功能上没有活动。听起来像是网络问题,所以我启动了第三台机器,安装并测试了selenium grid(works)。控制台可以从我的笔记本电脑上看到,运行在我的桌面上,通过ipaddress:4444/Console

然后我启动了一个遥控器,出现了同样的问题。好的,然后我关闭本地桌面(将其视为服务器)和笔记本(将其视为远程)上的防火墙。同样的问题

最后,考虑到本地控制台的存在可能会影响远程启动,我重新启动并仅运行以下命令:

ant -Dport=6601 -Dhost=<laptop ip> -DhubURL=http://<desktop ip>:4444 -Denvironment"firefox" launch-remote-control
ant-Dport=6601-Dhost=-DhubURL=http://:4444-Denvironment“firefox”启动远程控制
同样的问题

我还可以从桌面ping服务器

有没有我错过的场景?似乎每个实例中的所有内容都正常,并且都安装了相同的版本。很明显,有些东西并没有从一个地方转移到另一个地方,但我不知道如何在其他一切都正常的情况下解决它。非常感谢。

您需要在环境后面加一个“=”。例如,
-Denvironment=“firefox”

感谢启动-从DhubURL中删除“/wd/hub*”和删除DenEnvironment实际上让我工作了-感谢您的回复。我

ant -Dport=6666 -Dhost=pc78.subdomain.domain.ca -DhubURL=http://ab.cdef.ca:4444 launch-remote-control