cfg =& $cfg; //PHPUnit_Extensions_SeleniumTestCase::$browsers = $this->cfg['Test']['broswers']; $this->setBrowserUrl(TESTSUITE_PHPMYADMIN_HOST . TESTSUITE_PHPMYADMIN_URL); $this->start(); } public function tearDown() { $this->stop(); } /** * perform a login */ public function doLogin() { $this->open(TESTSUITE_PHPMYADMIN_URL); // Somehow selenium does not like the language selection on the cookie login page, forced English in the config for now. //$this->select("lang", "label=English"); $this->waitForPageToLoad("30000"); $this->type("input_username", TESTSUITE_USER); $this->type("input_password", TESTSUITE_PASSWORD); $this->click("input_go"); $this->waitForPageToLoad("30001"); } /* * Just a dummy to show some example statements * public function mockTest() { // Slow down the testing speed, ideal for debugging //$this->setSpeed(4000); } */ } ?>