[Yanel-commits] rev 22646 - in public/yanel/trunk/src: realms/yanel-website/content realms/yanel-website/content/documentation realms/yanel-website/content/documentation/testing-framework realms/yanel-website/paths/en/documentation realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml realms/yanel-website/paths/en/documentation/testing-framework.html realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti realms/yanel-website/paths/en/documentation/testing-framework.xhtml test

andi at wyona.com andi at wyona.com
Wed Feb 14 17:47:49 CET 2007


Author: andi
Date: 2007-02-14 17:47:47 +0100 (Wed, 14 Feb 2007)
New Revision: 22646

Added:
   public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/
   public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml
   public/yanel/trunk/src/realms/yanel-website/content/introspection-testing-framework.xml
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml/
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml/.yarep-uid
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti/
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti/.yarep-uid
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html/
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html/.yarep-uid
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.xhtml/
   public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.xhtml/.yarep-uid
Modified:
   public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml
   public/yanel/trunk/src/test/README.txt
Log:
Fixed bug 5189. Thanks a lot Simon!


Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+  <title>Testing Framework</title>
+</head>
+
+
+<body>
+<h1>Testing Framework</h1>
+<h3>General information</h3>
+There are two kind of tests:
+<ul>
+<li>junit:    used to test specific functionality of certain java components/classes see <a href="http://junit.org/">http://junit.org/</a></li><li>htmlunit: used to test the web pages (simulating user interaction) see <a href="http://htmlunit.sourceforge.net/">http://htmlunit.sourceforge.net/</a></li></ul>
+<h3>How to run the tests</h3>
+<p>
+It's necessary to build yanel before running the tests.
+</p>
+<p>
+If you want to run the htmlunit tests, you have to start tomcat and configure
+the host and url in $YANEL_HOME/src/test/htmlunit/default-properties.xml.
+</p>
+<p>
+Then execute in $YANEL_HOME: ./build.sh test
+</p>
+<p>
+To run single tests standalone:
+cd $YANEL_HOME/src/test
+ant junit -Dtest.class.name=org.wyona.yanel.impl.map.MapImplTest
+ant htmlunit -Dtest.class.name=org.wyona.yanel.htmlunit.yanelwebsite.SimpleWebTest
+</p>
+<h3>How to write tests</h3>
+<p>
+Where to place core tests:
+<br/>$YANEL_HOME/src/test/junit/
+<br/>$YANEL_HOME/src/test/htmlunit/
+<br/><br/>Where to place resource tests:
+<br/>$YANEL_HOME/src/resources/MYRESOURCE/src/test/junit/
+<br/>$YANEL_HOME/src/resources/MYRESOURCE/src/test/htmlunit/
+</p>
+<p>
+Choose the name of the class according to the following convention:
+</p>
+<p>
+*Test.java e.g. MyResourceTest.java
+</p>
+<p>
+The tests which adhere to these conventions will be executed automatically by
+the testing framework.
+</p>
+<p>
+Have a look at the existing tests to see how it works, e.g. in the xml resource.
+</p>
+<p>
+You can find more example htmlunit tests at: <a href="http://svn.wyona.com/repos/public/lenya/htmlunit/">http://svn.wyona.com/repos/public/lenya/htmlunit/</a> Username:anonymous Password: anonymous.<br/>
+</p>
+</body>
+</html>
\ No newline at end of file

Modified: public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml	2007-02-14 16:47:47 UTC (rev 22646)
@@ -47,6 +47,7 @@
     <li><a href="how-to-add-ssl-to-apache-httpd.html">Install Apache-Httpd with SSL support</a></li>
     <li><a href="i18n.html">Yanel and i18n</a></li>
     <li><a href="jmeter.html">JMeter</a></li>
+    <li><a href="testing-framework.html">Yanel Testing Framework</a></li>
 </ul>
 
 </body>

Added: public/yanel/trunk/src/realms/yanel-website/content/introspection-testing-framework.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/introspection-testing-framework.xml	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/content/introspection-testing-framework.xml	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+
+<introspection xmlns="http://www.wyona.org/neutron/1.0">
+<edit mime-type="application/xhtml+xml" name="Testing Framework">
+  <checkout url="testing-framework.xhtml?yanel.resource.usecase=checkout" method="GET"/>
+  <checkin  url="testing-framework.xhtml?yanel.resource.usecase=checkin"  method="PUT"/>
+</edit>
+</introspection>

Added: public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml/.yarep-uid
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml/.yarep-uid	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/introspection-testing-framework.xml/.yarep-uid	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1 @@
+introspection-testing-framework.xml
\ No newline at end of file

Added: public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html/.yarep-uid
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html/.yarep-uid	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html/.yarep-uid	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1 @@
+documentation/testing-framework/en.xhtml

Added: public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti/.yarep-uid
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti/.yarep-uid	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.html.yanel-rti/.yarep-uid	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1 @@
+rtd/page.rtd
\ No newline at end of file

Added: public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.xhtml/.yarep-uid
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.xhtml/.yarep-uid	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/realms/yanel-website/paths/en/documentation/testing-framework.xhtml/.yarep-uid	2007-02-14 16:47:47 UTC (rev 22646)
@@ -0,0 +1 @@
+documentation/testing-framework/en.xhtml

Modified: public/yanel/trunk/src/test/README.txt
===================================================================
--- public/yanel/trunk/src/test/README.txt	2007-02-14 16:19:10 UTC (rev 22645)
+++ public/yanel/trunk/src/test/README.txt	2007-02-14 16:47:47 UTC (rev 22646)
@@ -1,54 +1,8 @@
-Testing Framework
-=================
+you can find more information about the test framework at:
 
-General information
--------------------
+on your yanel:
+http://$YOURSERVER/$SERVLETPREFIX/yanel-website/en/documentation/test-framework.html
+e.g. http://localhost:8080/yanel/yanel-website/en/documentation/test-framework.html
 
-There are two kind of tests:
-junit:    used to test specific functionality of certain java components/classes
-          see http://junit.org/
- 
-htmlunit: used to test the web pages (simulating user interaction)
-          see http://htmlunit.sourceforge.net/
-
-
-How to run the tests
---------------------
-
-It's necessary to build yanel before running the tests.
-If you want to run the htmlunit tests, you have to start tomcat and configure 
-the host and url in $YANEL_HOME/src/test/htmlunit/default-properties.xml.
-
-Then execute in $YANEL_HOME:
-./build.sh test
-
-To run single tests standalone:
-cd $YANEL_HOME/src/test
-ant junit -Dtest.class.name=org.wyona.yanel.impl.map.MapImplTest
-ant htmlunit -Dtest.class.name=org.wyona.yanel.htmlunit.yanelwebsite.SimpleWebTest
-
-
-How to write tests
-------------------
-
-Where to place core tests:
-$YANEL_HOME/src/test/junit/
-$YANEL_HOME/src/test/htmlunit/
-
-Where to place resource tests:
-$YANEL_HOME/src/resources/MYRESOURCE/src/test/junit/
-$YANEL_HOME/src/resources/MYRESOURCE/src/test/htmlunit/
-
-Choose the name of the class according to the following convention:
-
-*Test.java
-
-e.g. MyResourceTest.java
-
-The tests which adhere to these conventions will be executed automatically by 
-the testing framework.
-
-Have a look at the existing tests to see how it works, e.g. in the xml resource.
-You can find more example htmlunit tests at:
-http://svn.wyona.com/repos/public/lenya/htmlunit/
-
+on the internet:
+http://yanel.wyona.org/en/documentation/test-framework.html
\ No newline at end of file




More information about the Yanel-commits mailing list