自動テストに Selenium を使用しています。違いは何ですか
java -jar selenium-server-standalone-2.24.1.jar -role hub
と
java -jar selenium-server-standalone-2.24.1.jar -role webdriver
?
同じようです。それとも違いはありますか?
自動テストに Selenium を使用しています。違いは何ですか
java -jar selenium-server-standalone-2.24.1.jar -role hub
と
java -jar selenium-server-standalone-2.24.1.jar -role webdriver
?
同じようです。それとも違いはありますか?
Quoting from the official wiki page:
The Hub is the central point that will receive all the test request and distribute them the the right nodes.
Regardless on whether you want to run a grid with new WebDriver functionality, or a grid with Selenium 1 RC functionality, or both at the same time, you use the same selenium-server-standalone jar file to start the nodes.
My personal thought: The node is used for Selenium 1 (RC) and webdriver for selenium 2 (webdriver). In my personal setup i use role webdriver
If the wiki is not enough, I would suggest you to join Selenium users group
すべてはノードの機能に依存します。以下の json ファイルは seleniumProtocol 値を示し、それに基づいてグリッド上の RC と Webdriver を反映します。
"capabilities":
[
{
"browserName": "*firefox",
"maxInstances": 2,
"seleniumProtocol": "Selenium"
},
{
"browserName": "*googlechrome",
"maxInstances": 2,
"seleniumProtocol": "Selenium"
},
{
"browserName": "*iexplore",
"maxInstances": 1,
"seleniumProtocol": "Selenium"
},
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
ノードまたはコマンド ラインで指定したかどうかに関係なく、常にRC
とwebdriver
インスタンスの両方をグリッドに表示しますwebdriver