svn commit: r439643 - in /struts/sandbox/trunk/tiles/tiles-test: pom.xml src/main/webapp/index.jsp src/test/ src/test/selenium/ src/test/selenium/DefinitionTagTest.html src/test/selenium/TestSuite.htm

2006-09-02 Thread wsmoak
Author: wsmoak
Date: Sat Sep  2 12:50:32 2006
New Revision: 439643

URL: http://svn.apache.org/viewvc?rev=439643&view=rev
Log:
SB-43 Add some Selenium tests for the tiles-test webapp
Usage: mvn package cargo:start -P selenium 
   then visit http://localhost:8080/tiles-test/selenium/core/TestRunner.html

Added:
struts/sandbox/trunk/tiles/tiles-test/src/test/
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/

struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html  
 (with props)
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/TestSuite.html   
(with props)

struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/WelcomePageTest.html   
(with props)
Modified:
struts/sandbox/trunk/tiles/tiles-test/pom.xml
struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp

Modified: struts/sandbox/trunk/tiles/tiles-test/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/pom.xml?rev=439643&r1=439642&r2=439643&view=diff
==
--- struts/sandbox/trunk/tiles/tiles-test/pom.xml (original)
+++ struts/sandbox/trunk/tiles/tiles-test/pom.xml Sat Sep  2 12:50:32 2006
@@ -68,4 +68,71 @@
  ${pom.artifactId}

 
+
+
+selenium
+
+
+selenium
+
+
+
+
+
+org.codehaus.mojo
+dependency-maven-plugin
+
+
+unpack-selenium
+generate-resources
+
+unpack
+
+
+
+
+
org.openqa.selenium.core
+
selenium-core
+0.7.0
+
+
+
${project.build.directory}/selenium
+
+
+
+
+
+maven-antrun-plugin
+
+
+copy-selenium
+process-resources
+
+
+
+
+
+
+
+
+
+
+
+run
+
+
+
+
+
+
+
+
+OpenQA
+http://maven.openqa.org
+
+
+
+
+
+
 

Modified: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp?rev=439643&r1=439642&r2=439643&view=diff
==
--- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp (original)
+++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp Sat Sep  2 
12:50:32 2006
@@ -1,4 +1,25 @@
+
 
+
+Tiles 2 Test Application
+
 
 
 Tiles 2 Test Application

Added: 
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html?rev=439643&view=auto
==
--- 
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html 
(added)
+++ 
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html 
Sat Sep  2 12:50:32 2006
@@ -0,0 +1,56 @@
+
+
+
+
+Definition Tag Test
+
+
+
+
+Definition Tag Test
+
+
+   open
+   http://localhost:8080/tiles-test/
+   
+
+
+clickAndWait
+link=Test Definition Tag
+
+
+
+assertTextPresent
+This is the title
+
+
+
+assertTextPresent
+This is the header
+
+
+
+assertTextPresent
+This is a body
+
+
+
+
+

Propchange: 
struts/sandbox/trunk/tiles/tiles-test/src/test/selenium/DefinitionTagTest.html

svn commit: r439645 - in /struts/sandbox/trunk/tiles/src/site: apt/ apt/selenium.apt site.xml

2006-09-02 Thread wsmoak
Author: wsmoak
Date: Sat Sep  2 13:06:46 2006
New Revision: 439645

URL: http://svn.apache.org/viewvc?rev=439645&view=rev
Log:
SB-43 Add documentation for the Selenium tests.

Added:
struts/sandbox/trunk/tiles/src/site/apt/
struts/sandbox/trunk/tiles/src/site/apt/selenium.apt   (with props)
Modified:
struts/sandbox/trunk/tiles/src/site/site.xml

Added: struts/sandbox/trunk/tiles/src/site/apt/selenium.apt
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/src/site/apt/selenium.apt?rev=439645&view=auto
==
--- struts/sandbox/trunk/tiles/src/site/apt/selenium.apt (added)
+++ struts/sandbox/trunk/tiles/src/site/apt/selenium.apt Sat Sep  2 13:06:46 
2006
@@ -0,0 +1,118 @@
+ ---
+ Selenium Testing
+ ---
+
+Selenium Testing
+
+ <<{{{http://selenium.openqa.org}Selenium}}>> is a test tool for web
+ applications. Unlike HtmlUnit or HttpUnit tests which  a browser,
+ Selenium tests run directly in a real browser such as Firefox or Internet
+ Explorer. The Selenium JavaScript code is deployed alongside your running
+ application, and interacts with it just as your users do.
+
+ Tiles 2 uses Selenium for functional testing of the example apps.
+ The following example apps include Selenium tests:
+
+  * Tiles Test
+
+* Install
+
+ Selenium is available in OpenQA's Maven repository, so no installation is
+ necessary.
+
+ However, you may want to download the Selenium distribution (which includes
+ the documentation) from
+ {{{http://www.openqa.org/selenium-core/download.action}
+ http://www.openqa.org/selenium-core/download.action}}.
+
+ While you're there, also install the Firefox plugin <> from
+ {{{http://www.openqa.org/selenium-ide/}
+ http://www.openqa.org/selenium-ide/}}.
+
+* Package
+
+ <> the webapp with the 'selenium' profile activated.
+
+ The 
{{{http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/pom.xml
+?view=markup}tiles-test pom}} includes a 'selenium' profile that will
+
+  * unpack the Selenium jar under 'target'
+
+  * copy the 'core' directory from the unpacked Selenium jar into the
+  webapp
+
+  * copy any files in 'src/test/selenium' into the webapp
+
+  []
+
++-+
+mvn package -P selenium
++-+
+
+  The webapp will contain the following additional directories: 'selenium/core'
+  and 'selenium/tests'.
+
+* Deploy
+
+  <> the webapp to your favorite container. The Cargo plugin is
+  configured to make this easy:
+
++-+
+mvn package cargo:start -P selenium
+
+   or
+
+mvn package cargo:start -P selenium -Dcargo.tomcat5x.home=/path/to/tomcat5
++-+
+
+
+* Run
+
+ <> the tests with the Selenium TestRunner.
+
+ * Visit <<>>
+
+ * Click 'go' in the top left frame to load the TestSuite.html page
+
+ * Click 'All' in the top right frame to run the tests
+
+ []
+
+ <> the tests .
+
+ * Check the 'Auto-run' box before clicking 'go' in the top left frame.
+
+ []
+
+ After it runs the tests automatically, Selenium can <<>> the results to
+ a URL you supply.  If you accept the default, and nothing is there to process
+ the request, you will see a 404 Not Found error page in the bottom frame.
+
+
+* Edit
+
+  <> an existing test, or write a new one.
+
+  If you add a new test, remember to add it to src/test/selenium/TestSuite.html
+  so the TestRunner will find it.
+
+** Selenium IDE
+
+  The Selenium IDE Firefox plugin is the easiest way to edit tests. With the
+  example app running, open the HTML file 
(src/test/selenium/TestSomething.html)
+  from your svn checkout of Shale. Use the IDE to edit and run the test, and
+  save your changes.
+
+  <>: Your changes will not be visible to the TestRunner in the deployed
+  webapp unless you re-package and deploy it.
+
+** HTML Editor
+
+  Selenium tests are written in plain HTML tables, so you may edit them with 
any
+  text editor.
+
+  If you prefer to edit the tests 'in place' in the running webapp, simply copy
+  the files back to your svn checkout directory and commit the changes (or 
submit
+  a patch).
+
+

Propchange: struts/sandbox/trunk/tiles/src/site/apt/selenium.apt
--
svn:executable = *

Modified: struts/sandbox/trunk/tiles/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/src/site/site.xml?rev=439645&r1=439644&r2=439645&view=diff
==
--- struts/sandbox/trunk/tiles/src/site/site.xml (original)
+++ struts/sandbox/trunk/tiles/src/site/site.xml Sat Sep  2 13:06:46 2006
@@ -38,7 +38,9 @@
 
-
+
 
 
 

svn commit: r439646 - /struts/sandbox/trunk/tiles/src/site/apt/selenium.apt

2006-09-02 Thread wsmoak
Author: wsmoak
Date: Sat Sep  2 13:16:10 2006
New Revision: 439646

URL: http://svn.apache.org/viewvc?rev=439646&view=rev
Log:
Fix copy-paste error. SB-43

Modified:
struts/sandbox/trunk/tiles/src/site/apt/selenium.apt

Modified: struts/sandbox/trunk/tiles/src/site/apt/selenium.apt
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/src/site/apt/selenium.apt?rev=439646&r1=439645&r2=439646&view=diff
==
--- struts/sandbox/trunk/tiles/src/site/apt/selenium.apt (original)
+++ struts/sandbox/trunk/tiles/src/site/apt/selenium.apt Sat Sep  2 13:16:10 
2006
@@ -100,7 +100,7 @@
 
   The Selenium IDE Firefox plugin is the easiest way to edit tests. With the
   example app running, open the HTML file 
(src/test/selenium/TestSomething.html)
-  from your svn checkout of Shale. Use the IDE to edit and run the test, and
+  from your svn checkout of Tiles 2. Use the IDE to edit and run the test, and
   save your changes.
 
   <>: Your changes will not be visible to the TestRunner in the deployed




svn commit: r439710 - /struts/struts1/trunk/pom.xml

2006-09-02 Thread wsmoak
Author: wsmoak
Date: Sat Sep  2 19:43:45 2006
New Revision: 439710

URL: http://svn.apache.org/viewvc?rev=439710&view=rev
Log:
Disable the DTDDoc plugin by default, the latest snapshot breaks the 'mvn site' 
build.

Modified:
struts/struts1/trunk/pom.xml

Modified: struts/struts1/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/pom.xml?rev=439710&r1=439709&r2=439710&view=diff
==
--- struts/struts1/trunk/pom.xml (original)
+++ struts/struts1/trunk/pom.xml Sat Sep  2 19:43:45 2006
@@ -98,7 +98,7 @@
 
 dtddoc
 
-true
+