我有一個運行selenium grid2集線器並連接了2個節點(節點a和節點b)。我如何使用它們?我如何在多個節點上運行測試?我有這種感覺,我失去了一些明顯的東西。如何在php webdriver中使用硒網格2?
如果試圖這樣:
phpunit tests/phpunit/GUI/
有一個2測試例(RegTest,LoginTest)兼具執行(在序列),但只有在一個節點。 (節點a)第二個節點不被觸摸一次。
我失蹤了什麼?
node a (ubuntu) java -jar selenium-server-standalone-2.18.0.jar -role node -hub http://localhost:4444/grid/register node b (xp) java -jar selenium-server-standalone-2.18.0.jar -role node -hub http://localhost:4444/grid/register
兩個節點都安裝了firefox。我連接到使用此電話的中心:
$this->oWebDriver = new WebDriver(self::SELENIUM_SERVER, self::SELENIUM_SERVER_PORT);
$this->oWebDriver->connect('firefox');
這個PHP的webdriver:http://code.google.com/p/php-webdriver-bindings/