Selenium GRID2では、どのように複数のリモコンを設定しますか? インストールされているブラウザ(その中には特定の場所にインストールされているもの)を使用して、2台のマシン(「machine01」と「machine02」と呼ぶ)を使用できます。テストケースを実行するには、これらの2をGRID2 HUBに登録します。Selenium GRID2 + yml設定ファイル+複数のリモコン
私はHUBとして動作する必要がある第三のマシンを持って、私はそれを起動します。
java -jar selenium-server-standalone-2.14.0.jar -role hub -grid1Yml grid_configuration.yml
しかし、どのように私はYML構成ファイルで別のリモートコントロールを設定するのですか?どのように、私はリモコンとして利用できる複数のマシンを持っていることを今
java -jar selenium-server-standalone-2.14.0.jar -role rc -hub http://localhost:4444/grid/register -port 5555 -browser "browserName=Firefox 6.0 on Windows,maxInstances=1" -browser "browserName=Firefox 7.0 on Windows,maxInstances=1" -browser browserName="Internet Explorer 8,maxInstances=1" -browser browserName="Google Chrome on Windows,maxInstances=1" -browser browserName="Safari 5.1 on Windows,maxInstances=1"
:私は、このコマンドを実行するリモートコントロールに
hub:
port: 4444
remoteControlPollingIntervalInSeconds: 180
sessionMaxIdleTimeInSeconds: 300
environments:
- name: "Firefox 6.0 on Windows"
browser: "*firefox C:\\Program Files\\Mozilla Firefox 6.0\\firefox.exe"
- name: "Firefox 7.0 on Windows"
browser: "*firefox C:\\Program Files\\Mozilla Firefox 7.0\\firefox.exe"
- name: "Internet Explorer 8"
browser: "*iehta"
- name: "Google Chrome on Windows"
browser: "*googlechrome"
- name: "Safari 5.1 on Windows"
browser: "*safariproxy C:\\Program Files\\Safari\\Safari.exe"
: は私のローカルコンピュータ上の調査中に、私は、この設定を使用しました私は利用可能な各マシンとブラウザが各マシンのどこにあるのかを指定します。
ありがとうございました!