summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/index.php
diff options
context:
space:
mode:
authorwei <>2005-12-10 11:49:29 +0000
committerwei <>2005-12-10 11:49:29 +0000
commit98215a603fb798cdb4178e49061977544aaa45b7 (patch)
tree282787037961f7466acbd174ce151cac6de71273 /tests/FunctionalTests/index.php
parent25f9c45261aafd65477ad526e0b6ad3dca80803a (diff)
Initial import selenium functional test framework.
Diffstat (limited to 'tests/FunctionalTests/index.php')
-rw-r--r--tests/FunctionalTests/index.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/index.php b/tests/FunctionalTests/index.php
new file mode 100644
index 00000000..b2c9e16c
--- /dev/null
+++ b/tests/FunctionalTests/index.php
@@ -0,0 +1,26 @@
+<?php
+
+require('config.php');
+
+class BrowserTestConfig extends PradoTestConfig
+{
+ //functional test groups
+ public function unit_test_groups()
+ {
+ $groups['Web/UI'] = realpath($this->tests_directory().'/Web/UI/');
+ $groups['Demos'] = realpath($this->tests_directory().'/Demos/');
+ return $groups;
+ }
+}
+
+
+$root = dirname(__FILE__);
+$server = SimpleSeleniumProxyServer::getInstance($root);
+
+$tester = new PradoSimpleTester(new BrowserTestConfig());
+$browser_tests = $tester->getTests();
+$browser_tests->run(new SeleniumReporter());
+
+$server->handleRequest();
+
+?> \ No newline at end of file