summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/index.php
diff options
context:
space:
mode:
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