ローカル マシンで Selenium Grid を正常に実行し、それをサーバー (Windows Server 2008 R2) に移動しました。
サーバー インスタンスがローカルで起動されたエージェントで正常に実行されている サーバーがホストするコンソールがインターネット経由で表示されている
ただし、別のマシンで新しいリモート コントロールを作成すると、ビルドは成功しますが、ハブに登録されません。
コマンドラインは次のとおりです。
ant -Dport=6601 -Dhost=<ip address of my box> -DhubURL=http://ab.cdefg.ca:4444/wd/hub* -Denvironment"firefox" launch-remote-control
IP名の代わりにホスト名も使用しました(pc78.subdomain.domain.ca)
Denvironment を指定しないと、次のように返されます。
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
Denvironment を指定すると、次のように返されます。
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>
ただし、コンソールはこのエージェントを認識または使用しません。また、このエージェントはhttp://localhost:4444/consoleにも表示されません
だから私はそれを逆にしてローカルをサーバーとして使用し、サーバーをリモートコントロールとして登録しようとしましたが、同じ問題が繰り返され、コマンドラインは成功しましたが、機能的には活動がありませんでした. ネットワークの問題のように聞こえるので、3 台目のマシンを起動し、セレン グリッドをインストールしてテストしました (動作)。コンソールは、デスクトップで実行されているラップトップから、ipaddress:4444/console を介して表示されます。
その後、リモコンを起動しましたが、同じ問題がありました。次に、ローカル デスクトップ (サーバーとして扱う) とラップトップ (リモートとして扱う) のファイアウォールをオフにします。同じ問題。
最後に、ローカル コンソールの存在がリモート起動を台無しにしている可能性があると考えて、再起動して次のものだけを実行します。
ant -Dport=6601 -Dhost=<laptop ip> -DhubURL=http://<desktop ip>:4444 -Denvironment"firefox" launch-remote-control
同じ問題。
また、デスクトップからサーバーにpingを実行できます
不足している設定はありますか?各インスタンスのすべてが問題ないようで、すべて同じバージョンがインストールされています。明らかに、ある場所から別の場所に何かが届いていませんが、他のすべてが問題ないように見えるときに、それを回避する方法がわかりません。どうもありがとう。