diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-24 15:10:25 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-24 15:10:25 +0200 |
commit | 315064cf9714cd1ae38ed5766a4f00299bd8be08 (patch) | |
tree | ff0ac57c2393a5524b1df69869d8af61f3683dc7 /tests/test_tools/PradoGenericSeleniumTest.php | |
parent | 7c65b2f40ea9242260eac5a746863f5925423861 (diff) |
Ported some failing functional tests to phpunit+selenium
Diffstat (limited to 'tests/test_tools/PradoGenericSeleniumTest.php')
-rw-r--r-- | tests/test_tools/PradoGenericSeleniumTest.php | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/tests/test_tools/PradoGenericSeleniumTest.php b/tests/test_tools/PradoGenericSeleniumTest.php index 547ff2f0..922b9d87 100644 --- a/tests/test_tools/PradoGenericSeleniumTest.php +++ b/tests/test_tools/PradoGenericSeleniumTest.php @@ -1,12 +1,38 @@ <?php require_once 'PHPUnit/Extensions/SeleniumTestCase.php'; +require_once 'PHPUnit/Extensions/Selenium2TestCase.php'; class PradoGenericSeleniumTest extends PHPUnit_Extensions_SeleniumTestCase { + static $browser='*googlechrome'; + static $baseurl='http://127.0.0.1/prado-3.2/tests/FunctionalTests/'; + + protected function setUp() + { + $this->setBrowser(static::$browser); + $this->setBrowserUrl(static::$baseurl); + } + + protected function tearDown() + { + } +} + +// TODO: stub +class PradoGenericSelenium2Test extends PHPUnit_Extensions_Selenium2TestCase +{ + static $browser='chrome'; + static $baseurl='http://127.0.0.1/prado-3.2/tests/FunctionalTests/'; + protected function setUp() { - $this->setBrowser('*googlechrome'); - $this->setBrowserUrl('http://127.0.0.1/prado-3.2/tests/FunctionalTests/'); + $this->setBrowser(static::$browser); + $this->setBrowserUrl(static::$baseurl); + } + + protected function open($url) + { + $this->setBrowserUrl(static::$baseurl.$url); } protected function tearDown() |