summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2006-01-22 02:32:23 +0000
committerwei <>2006-01-22 02:32:23 +0000
commit1fc6971652492fca325bd25d7b6dd979ebde73ed (patch)
treed7179ce6af434f6766e543d3fb8dc134f663cb4f
parentd4b3de52d0a0a2d394bf4763984029972b5131b1 (diff)
Adding quickstart_tests
-rw-r--r--.gitattributes1
-rw-r--r--tests/FunctionalTests/index.php7
-rw-r--r--tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php12
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