protected function setUp() { parent::setUp(); $this->_screenshots = array(); $browserName = Xtest::getArg('browser', 'firefox'); $browserData = Mage::getConfig()->getNode('default/xtest/selenium/browserlist/' . strtolower($browserName)); if ($browserData) { $browserData = $browserData->asArray(); $capabilities = array(); if ($browserData['is_browserstack']) { if ($browserstackConfig = Mage::getConfig()->getNode('default/xtest/selenium/browserstack')) { $browserstackConfig = $browserstackConfig->asArray(); $this->setHost($browserstackConfig['host']); $this->setPort((int) $browserstackConfig['port']); if (file_exists($browserstackConfig['authfile'])) { list($user, $key) = explode(':', file_get_contents($browserstackConfig['authfile'])); $capabilities['browserstack.user'] = trim($user); $capabilities['browserstack.key'] = trim($key); } } } $this->setBrowser($browserData['name']); if ($caps = $browserData['capabilities']) { $capabilities = array_merge($capabilities, $caps); } $this->setDesiredCapabilities($capabilities); } else { $this->setBrowser($browserName); } $this->setBrowserUrl(Mage::getBaseUrl()); $this->setUpSessionStrategy(null); // Default Browser-Size $this->prepareSession()->currentWindow()->size(array('width' => 1280, 'height' => 1024)); Xtest::initFrontend(); }
protected function setUp() { parent::setUp(); $this->setBrowser('firefox'); $this->setHost('192.168.33.10'); $this->setBrowserUrl('http://typo3-6-2.lamp2/'); }
public function setUp() { parent::setUp(); $this->setHost('home.brocode.dk'); $this->setPort(4444); $this->setBrowser("internet explorer"); $this->setBrowserUrl('http://localhost:9090/JoomlaTestCodeCeption/'); }
protected function setUp() { parent::setUp(); $this->setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST); $this->setPort(intval(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT)); $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER); $this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL); }
protected function setUp() { parent::setUp(); $this->setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST); $this->setPort(intval(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT)); $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER); $this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL); //added for xhprof tracing and works only with phantomjs $this->setDesiredCapabilities(array('phantomjs.page.customHeaders.PHPUNIT-SELENIUM-TEST-ID' => $this->getTestId())); }
protected function setUp() { parent::setUp(); // $this->setBrowser($this->getSeleniumBrowser()); // $this->setHost($this->getSeleniumHost()); // $this->setPort($this->getSeleniumPort()); $this->setBrowser('chrome'); $this->setHost('192.168.33.10'); $this->setPort(4444); $this->setBrowserUrl('http://typo3-6-2.lamp2/'); // 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->setHost('localhost'); $this->setPort(4444); $this->setBrowserUrl(TEST_BASE_URL); // $this->setBrowser('phantomjs'); $this->setBrowser('firefox'); // $this->setBrowser('chrome'); // $this->setBrowser('*firefox'); // $this->setBrowser('phantomjs'); // $this->setBrowserUrl(TEST_BASE_URL); }
public function setUp() { parent::setUp(); $this->setBrowser('firefox'); $this->setBrowserUrl(Mage::getBaseUrl()); $this->setUpSessionStrategy(null); // Default Browser-Size $this->prepareSession()->currentWindow()->size(array('width' => 1280, 'height' => 1024)); self::initFrontend(1); if (Mage::getIsDeveloperMode()) { self::$_defaultSleep = 7; } $this->disableCaches(); $this->setConfigMagento(); $this->setMundipaggConfig(); $this->createSimpleProduct(); }
/** * Configures the selenium and database link. * * @return void * * @throws Exception */ protected function setUp() { if (!self::$_selenium_enabled) { $this->markTestSkipped('Selenium testing not configured.'); } $caps = $this->getDesiredCapabilities(); $this->setDesiredCapabilities(array_merge($caps, array('name' => get_class($this) . '__' . $this->getName()))); parent::setUp(); $this->setBrowserUrl($GLOBALS['TESTSUITE_URL']); $this->_mysqli = new mysqli($GLOBALS['TESTSUITE_SERVER'], $GLOBALS['TESTSUITE_USER'], $GLOBALS['TESTSUITE_PASSWORD']); if ($this->_mysqli->connect_errno) { throw new Exception('Failed to connect to MySQL (' . $this->_mysqli->error . ')'); } $this->database_name = $GLOBALS['TESTSUITE_DATABASE'] . $GLOBALS['PMA_String']->substr(md5(rand()), 0, 7); $this->dbQuery('CREATE DATABASE IF NOT EXISTS ' . $this->database_name); $this->dbQuery('USE ' . $this->database_name); }
protected function setUp() { parent::setUp(); $this->setBrowserUrl('http://www.example.com/'); }
/** * Setup browser session and size * * @return void */ protected function setUp() { parent::setUp(); $this->setBrowserURL($this->base_url); $this->prepareSession()->currentWindow()->maximize(); }
/** * setUp method * * @return void */ public function setUp() { parent::setUp(); $this->CategoriaArquivo = ClassRegistry::init('CategoriaArquivo'); }
protected function setUp() { parent::setUp(); $this->setBrowser('phantomjs'); }
/** * Sets up the fixture before executing a test method. * If you override this method, make sure the parent implementation is invoked. * Otherwise, the database fixtures will not be managed properly. */ protected function setUp() { parent::setUp(); if (is_array($this->fixtures)) { $this->getFixtureManager()->load($this->fixtures); } }