diff options
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | tests/FunctionalTests/index.php | 7 | ||||
-rw-r--r-- | tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php | 12 |
3 files changed, 19 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes index c683b531..35edacb9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -641,6 +641,7 @@ tests/FunctionalTests/protected/pages/ViewSource.page -text tests/FunctionalTests/protected/pages/ViewSource.php -text tests/FunctionalTests/protected/pages/config.xml -text tests/FunctionalTests/protected/tests/HomePageTest.php -text +tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php -text tests/FunctionalTests/selenium/SeleneseRunner.html -text tests/FunctionalTests/selenium/SeleniumLog.html -text tests/FunctionalTests/selenium/TestRunner-splash.html -text diff --git a/tests/FunctionalTests/index.php b/tests/FunctionalTests/index.php index da60b2f0..47ef19ce 100644 --- a/tests/FunctionalTests/index.php +++ b/tests/FunctionalTests/index.php @@ -8,7 +8,12 @@ class BrowserTestConfig extends PradoTestConfig public function unit_test_groups() { $groups = array(); - $this->get_directories($this->tests_directory(),$groups); + + $this->get_directories(dirname(__FILE__).'/quickstart_tests', $groups); + + //for tests in the protected dirs + //$this->get_directories($this->tests_directory(),$groups); + return $groups; } diff --git a/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php b/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php new file mode 100644 index 00000000..1edb844e --- /dev/null +++ b/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php @@ -0,0 +1,12 @@ +<?php
+
+class HelloWorldTestCase extends SeleniumTestCase
+{
+ function testButton()
+ {
+ $this->open('../../demos/quickstart/index.php?page=Fundamentals.Samples.HelloWorld.Home');
+ $this->verifyTitle('Hello World');
+ }
+}
+
+?>
\ No newline at end of file |