物理的なWindowsマシンにハブを設定しました。ヘッドレスLinux Red Hat VMでこのハブに接続するノードをセットアップしようとしています。グリッドコンソールでノードの接続がタイムアウトしたときのリモートマシンの登録
は私がノード起動するには、このコマンドを使用します。
java -jar selenium-server-standalone-3.4.0.jar -role
node -hub http://<IP>:5786/grid/register
このノードには、次のスタックトレース
10:38:55.935 INFO - Selenium build info: version: '3.4.0', revision:
'unknown'
10:38:55.936 INFO - Launching a Selenium Grid node
2017-07-11 10:38:56.716:INFO::main: Logging initialized @1140ms to
org.seleniumhq.jetty9.util.log.StdErrLog
10:38:56.800 INFO - Driver provider
org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true,
browserName=internet explorer, version=, platform=WINDOWS}] does not match
the current platform LINUX
10:38:56.800 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver
registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=,
platform=WINDOWS}] does not match the current platform LINUX
10:38:56.800 INFO - Driver class not found: com.opera.core.systems.OperaDriver
10:38:56.800 INFO - Driver provider com.opera.core.systems.OperaDriver
registration is skipped:
Unable to create new instances on this machine.
10:38:56.800 INFO - Driver class not found: com.opera.core.systems.OperaDriver
10:38:56.800 INFO - Driver provider com.opera.core.systems.OperaDriver is not
registered
10:38:56.801 INFO - Driver provider org.openqa.selenium.safari.SafariDriver
registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=,
platform=MAC}] does not match the current platform LINUX
2017-07-11 10:38:56.860:INFO:osjs.Server:main: jetty-9.4.3.v20170317
2017-07-11 10:38:56.905:INFO:osjsh.ContextHandler:main: Started
[email protected]{/,null,AVAILABLE}
2017-07-11 10:38:56.922:INFO:osjs.AbstractConnector:main: Started
[email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:5555}
2017-07-11 10:38:56.923:INFO:osjs.Server:main: Started @1346ms
10:38:56.923 INFO - Selenium Grid node is up and ready to register to the hub
10:38:56.967 INFO - Starting auto registration thread. Will try to register
every
5000 ms.
10:38:56.968 INFO - Registering the node to the hub:
http://<IP>/grid/register
10:38:57.322 INFO - The node is registered to the hub and ready to use
私はしかし、コンソール上に行くと、端末で正常に登録し、次のメッセージがあります与えられた:
さらに、私のハブ端末では、年齢:
11:00:26.189 INFO - Unregistering the node http://<IP of NODE>:5555 because
it's been down for 60006 milliseconds
11:00:33.615 WARN - Cleaning up stale test sessions on the unregistered node
http://<IP of NODE>:5555
これは何度も繰り返されます。
私はこれを多く見て、何か助けになることができませんでした。
NAT接続の代わりにブリッジ接続を使用していましたが、私は企業の設定に入っていて、これらの設定のいずれかを試すことはできません。ここで
EDIT
08:53:22.664 INFO - Selenium build info: version: '3.4.0', revision:
'unknown'
08:53:22.665 INFO - Launching a Selenium Grid node
2017-07-12 08:53:23.505:INFO::main: Logging initialized @1194ms to
org.seleniumhq.jetty9.util.log.StdErrLog
08:53:23.590 INFO - Driver provider
org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true,
browserName=internet explorer, version=, platform=WINDOWS}] does not match
the current platform LINUX
08:53:23.591 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver
registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge,
version=, platform=WINDOWS}] does not match the current platform LINUX
08:53:23.591 INFO - Driver class not found:
com.opera.core.systems.OperaDriver
08:53:23.591 INFO - Driver provider com.opera.core.systems.OperaDriver
registration is skipped:
Unable to create new instances on this machine.
08:53:23.591 INFO - Driver class not found:
com.opera.core.systems.OperaDriver
08:53:23.591 INFO - Driver provider com.opera.core.systems.OperaDriver is not
registered
08:53:23.592 INFO - Driver provider org.openqa.selenium.safari.SafariDriver
registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=,
platform=MAC}] does not match the current platform LINUX
2017-07-12 08:53:23.650:INFO:osjs.Server:main: jetty-9.4.3.v20170317
2017-07-12 08:53:23.699:INFO:osjsh.ContextHandler:main: Started
[email protected]{/,null,AVAILABLE}
2017-07-12 08:53:23.715:INFO:osjs.AbstractConnector:main: Started
[email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:8151}
2017-07-12 08:53:23.715:INFO:osjs.Server:main: Started @1404ms
08:53:23.724 INFO - Selenium Grid node is up and ready to register to the hub
08:53:23.765 INFO - Starting auto registration thread. Will try to register
every 5000 ms.
08:53:23.765 INFO - Registering the node to the hub:
http://10.56.130.102:5786/grid/register
08:53:24.114 INFO - The node is registered to the hub and ready to use
ノードポートを確認してください。ファイアウォールでTCPとUDP接続のために5555が許可されています – Murthi
この応答をお寄せいただきありがとうございます。 – Jay
ハブマシンから、ポートにノードをpingします。 ping応答を受け取っている場合は、ファイアウォールが許可されている必要があります。 Windowsでは、ポリシールールで有効にすることができます。 Linuxでは、ポートを許可するコマンドがありますが、わかりません。 – Murthi