Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I use phpunit, selenium RC php api to run my testcases. My testcase looks like </p> <pre><code> 1235$Deepan@Newton~/selenium/ide_scripts$ cat mytest.php 'FF on linux', 'browser' => '*firefox', 'host' => '10.211.55.8', 'port' => 4444, 'timeout' => 30000, ), array( 'name' => 'FF on windows', 'browser' => '*firefox', 'host' => '10.211.55.5', 'port' => 4444, 'timeout' => 30000, ), */ array( 'name' => 'Google Chrome on windows', 'browser' => '*googlechrome', 'host' => '10.211.55.5', 'port' => 4444, 'timeout' => 30000, ), /* array( 'name' => 'IE on windows', 'browser' => '*iexplore', 'host' => '10.211.55.5', 'port' => 4444, 'timeout' => 30000, ), array( 'name' => 'Safari on MacOS X', 'browser' => '*safari', 'host' => 'localhost', 'port' => 4444, 'timeout' => 30000, ), array( 'name' => 'Firefox on MacOS X', 'browser' => '*chrome', 'host' => 'localhost', 'port' => 4444, 'timeout' => 30000, ), */ array( 'name' => 'Google Chrome on MacOS X', 'browser' => '*googlechrome', 'host' => 'localhost', 'port' => 4444, 'timeout' => 30000, ) ); protected function setUp() { //$this->setBrowser("*chrome"); $this->setBrowserUrl("http://www.facebook.com/"); } public function testMyTestCase() { $this->open("/index.php?lh=94730c649368393b6954cb9fc0802e0a&eu=iKjrC7Q2aC-8tcU7PVLilg"); $this->type("email", "myemail@domain.com"); $this->type("pass", "mypassword"); $this->click("persistent"); $this->click("//input[@type='submit']"); $this->waitForPageToLoad("30000"); sleep(10); $this->open("http://apps.facebook.com/myapp/"); sleep(4); $this->click("link=Play"); $this->waitForPageToLoad("30000"); sleep(4); $this->click("navAccountLink"); sleep(4); $this->click("link=Logout"); $this->waitForPageToLoad("30000"); sleep(4); } } ?> 1332$Deepan@Newton~/selenium/ide_scripts$ phpunit mytest.php </code></pre> <p>This will connect to browsers running inside virtual machines </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload