Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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
 }
Example #4
0
 /**
  * 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);
 }
Example #6
0
 /**
  * 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);
 }
Example #7
0
 /**
  * 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.
  */
 public function setUp()
 {
     if (X2_TEST_DEBUG_LEVEL > 1) {
         /**/
         println("\nrunning test case: " . $this->getName());
     }
     if (X2_SKIP_ALL_TESTS || self::$skipAllTests) {
         $this->markTestSkipped();
     }
     if (self::$loadFixturesForClassOnly) {
         $this->getFixtureManager()->loadFixtures = true;
     }
     $fixtures = is_array($this->fixtures) ? $this->fixtures : array();
     $this->fixtures = array_merge($fixtures, static::referenceFixtures());
     if (X2_TEST_DEBUG_LEVEL > 1) {
         println(' ' . $this->getName());
     }
     X2DbTestCase::setUpAppEnvironment(true);
     if (isset($_SESSION)) {
         $this->_oldSession = $_SESSION;
     }
     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();
     }
 }
 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");
 }
Example #10
0
 /**
  * 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();
     }
 }
Example #11
0
 /**
  * Sets up before each test method runs.
  * This mainly sets the base URL for the test application.
  */
 protected function setUp()
 {
     parent::setUp();
 }
Example #12
0
 /**
  * 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'] . '/');
 }