6

自動テストに Selenium を使用しています。違いは何ですか

java -jar selenium-server-standalone-2.24.1.jar -role hub

java -jar selenium-server-standalone-2.24.1.jar -role webdriver

?

同じようです。それとも違いはありますか?

4

2 に答える 2

1

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

于 2012-07-20T12:53:12.593 に答える
-1

すべてはノードの機能に依存します。以下の 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"
        }

ノードまたはコマンド ラインで指定したかどうかに関係なく、常にRCwebdriverインスタンスの両方をグリッドに表示しますwebdriver

ここに画像の説明を入力

于 2015-02-15T18:55:25.477 に答える