/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { $this->setBrowser('*googlechrome'); $this->setBrowserUrl(TEST_BASE_URL); Yii::app()->request->setBaseUrl(TEST_BASE_URL); parent::setUp(); }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $this->setBrowser('*firefox /usr/bin/firefox'); //para linux //$this->setBrowser('*firefox'); //para windows $this->setBrowserUrl(TEST_BASE_URL); }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $this->setBrowser('*firefox'); //$this->setTimeout(5); $this->setBrowserUrl(TEST_BASE_URL); $this->setSpeed(3000); //1000 is one second }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $tb_url = getenv('TEST_BASE_URL'); if (!isset($tb_url)) { $tb_url = TEST_BASE_URL; } $this->setBrowserUrl($tb_url); }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $this->setBrowserUrl(TEST_BASE_URL); }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $this->setBrowserUrl(TEST_BASE_URL); $this->setTimeout(self::TIMEOUT); }
public function tearDown() { if (isset($this->_oldSession)) { $_SESSION = $this->_oldSession; } self::$skipAllTests = false; self::$loadFixtures = X2_LOAD_FIXTURES; self::$loadFixturesForClassOnly = X2_LOAD_FIXTURES_FOR_CLASS_ONLY; parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->setBrowserUrl(TEST_BASE_URL); $this->db = Yii::app()->dbms; }
protected function setUp() { parent::setUp(); $this->setBrowser("*firefox"); $this->setBrowserUrl("http://localhost/demo-ebiobanques/index-test.php"); }
/** * Sets up before each test method runs. * * This mainly sets the base URL for the test application, and sets the * Selenese path to make it easier to locate/use Selenese HTML scripts. */ protected function setUp() { if (self::$skipAllTests) { $this->markTestSkipped(); } if (self::$loadFixturesForClassOnly) { $this->getFixtureManager()->loadFixtures = true; } // print out test name VERBOSE_MODE && println("\n" . $this->getName()); X2DbTestCase::setUpAppEnvironment(true); parent::setUp(); $this->setSeleneseDir(); // Set the screenshot path to one visible from the web. //$this->screenshotPath = Yii::app()->basePath . implode(DIRECTORY_SEPARATOR, array('', '..', 'uploads', 'testing')); //$this->screenshotUrl = rtrim(TEST_BASE_URL, 'index-test.php') . 'uploads/testing'; $this->setBrowserUrl(TEST_BASE_URL); $this->prepareTestSession(); if ($this->autoLogin) { $this->openX2('/site/login'); $this->session(); } }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); }
public function tearDown() { if (isset($this->_oldSession)) { $_SESSION = $this->_oldSession; } parent::tearDown(); }
protected function getAttribute($sel, $attr) { try { $attr = parent::getAttribute($sel . '@' . $attr); } catch (Exception $ex) { $attr = false; } return $attr; }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); $this->setBrowser('*firefox'); $this->setBrowserUrl('http://' . Yii::app()->params['hostname'] . '/'); }