Based on the Domain51_Testing_Selenium class available at http://domain51.googlecode.com/svn/Domain51/trunk/
예제 #1
0
 function testOfCommandCreation()
 {
     $remote_control = new SimpleSeleniumRemoteControl("tester", "http://simpletest.org/");
     $this->assertEqual($remote_control->buildUrlCmd("test"), 'http://localhost:4444/selenium-server/driver/?cmd=test');
     $this->assertEqual($remote_control->buildUrlCmd("test", array("next")), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=next');
     $this->assertEqual($remote_control->buildUrlCmd("test", array("ŽtŽ")), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=%C3%A9t%C3%A9');
     $this->assertEqual($remote_control->buildUrlCmd("test", array("next", "then")), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=next&2=then');
 }
예제 #2
0
 public function testOfCommandCreation()
 {
     $remote_control = new SimpleSeleniumRemoteControl('tester', 'http://simpletest.org/');
     $this->assertEqual($remote_control->buildUrlCmd('test'), 'http://localhost:4444/selenium-server/driver/?cmd=test');
     $this->assertEqual($remote_control->buildUrlCmd('test', array('next')), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=next');
     $this->assertEqual($remote_control->buildUrlCmd('test', array('�t�')), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=%C3%A9t%C3%A9');
     $this->assertEqual($remote_control->buildUrlCmd('test', array('next', 'then')), 'http://localhost:4444/selenium-server/driver/?cmd=test&1=next&2=then');
 }