/** * Constructs a test case with the given name and browser to test execution * * @param string $name Test case name (by default = null) * @param array $data Test case data array (PHPUnit ONLY) (by default = array()) * @param string $dataName Name of Data set (PHPUnit ONLY) (by default = '') * @param array $browser Array of browser configuration settings: 'name', 'browser', 'host', 'port', 'timeout', * 'httpTimeout' (by default = array()) * * @throws InvalidArgumentException */ public function __construct($name = null, array $data = array(), $dataName = '', array $browser = array()) { $this->_testConfig = Mage_Selenium_TestConfiguration::initInstance(); $this->_dataHelper = $this->_testConfig->getDataHelper(); $this->_dataGenerator = $this->_testConfig->getDataGenerator(); $this->_applicationHelper = $this->_testConfig->getApplicationHelper(); $this->_pageHelper = $this->_testConfig->getPageHelper($this, $this->_applicationHelper); $this->_uimapHelper = $this->_testConfig->getUimapHelper(); if ($name !== null) { $this->name = $name; } $this->data = $data; $this->dataName = $dataName; $path = 'browsers/default/browserTimeoutPeriod'; $this->_browserTimeoutPeriod = !is_bool($this->_testConfig->getConfigValue($path)) ? $this->_testConfig->getConfigValue($path) : $this->_browserTimeoutPeriod; parent::__construct($name, $data, $dataName, $browser); }