0

Windows XPコンピューターのIE 8でセレングリッド1.0.8を使用して、テストケースを並行して実行しています。各ノードは、異なるコンピューターで構成されます。そして、それは完璧に機能しています。

しかし、Windows 7 の IE 9 でテスト ケースを実行しようとすると、動作しません。IE 9 が起動しましたが、何も起こりません。

Selenium グリッド 1.0.8 を使用して Windows 7 上の IE 9 でテスト ケースを実行する方法を教えてください。

ありがとうございました

4

1 に答える 1

0

Grid 2.0 を使用することをお勧めします

Web ドライバーを使用してグリッドでブラウザーを実行する方法

グリッドには、1 つの HUB と複数のノードがあります

シナリオはこちら

ハブ --> Mac マシン ノード --> Windows Vista

1) Download "Selenium Server"  latest server from " http://docs.seleniumhq.org/download/ " on    
both machine "Hub" and "Node"

2) Download browser driver in "Node" machine (Download browser driver according to your OS  
either 32-bit or 64-bit)

3) ハブ マシンでターミナルを開き、次のように入力します。

java -jar "selenium server location" -role hub <Enter>

open browser and type "http://localhost:4444/grid/console"

4) ノード マシンでターミナルを開き、次のように入力します。

java -jar "selenium server location" -role node -port 5566 -hub http://Hub ip address:4444/grid  
/register -Dwebdriver.ie.driver=<path of ie web driver, downloaded in step 2>  <Enter>

-Dwebdriver.ie.driver --> to specify the browser driver path

5) このコードは、ドライバ ブラウザに使用する必要があります。

DesiredCapabilities capabilies = DesiredCapabilities.internetexplorer();
capabilies.setPlatform(Platform.ANY);
driver = new RemoteWebDriver(new URL("<node url>:<port>/wd/hub"), capabilies); 
于 2013-07-10T15:08:50.603 に答える