summaryrefslogtreecommitdiff
path: root/tests/test_tools
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tools')
-rw-r--r--tests/test_tools/PradoGenericSeleniumTest.php30
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()