示例#1
0
 public function setUp()
 {
     // Hack because because PHPUnit version 3.0.6 which is on prototype does not
     // run setUp as part of TestSuite::run
     if ($this->isSetUp) {
         return;
     }
     $this->isSetUp = true;
     $this->selenium = Selenium::getInstance();
     $this->selenium->start();
     $this->selenium->open($this->selenium->getUrl() . '/index.php?setupTestSuite=' . $this->getName());
     if ($this->loginBeforeTests) {
         $this->login();
     }
 }
示例#2
0
 public function setUp()
 {
     // Hack because because PHPUnit version 3.0.6 which is on prototype does not
     // run setUp as part of TestSuite::run
     if ($this->isSetUp) {
         return;
     }
     $this->isSetUp = true;
     $this->selenium = Selenium::getInstance();
     $this->selenium->start();
     if ($this->triggerClientTestResources) {
         $this->selenium->open($this->selenium->getUrl() . '/index.php?setupTestSuite=' . $this->getName());
         //wait a little longer for the db operation
         $this->selenium->waitForPageToLoad(6000);
     }
     if ($this->loginBeforeTests) {
         $this->login();
     }
 }
示例#3
0
 public function setUp()
 {
     set_time_limit(60);
     $this->selenium = Selenium::getInstance();
 }
示例#4
0
 public function setUrl($url)
 {
     self::$url = $url;
 }