[Yanel-commits] rev 48811 - in
public/yanel/trunk/src/realms/yanel-website/content/documentation:
jmeter jmeter/en.xhtml.yarep jmeter/en.xhtml.yarep/revisions
jmeter/en.xhtml.yarep/revisions/1271317398096
jmeter/en.xhtml.yarep/revisions/1271317516898
jmeter/en.xhtml.yarep/revisions/1271322978408
jmeter/en.xhtml.yarep/revisions/1271323048433
testing-framework testing-framework/en.xhtml.yarep
testing-framework/en.xhtml.yarep/revisions
testing-framework/en.xhtml.yarep/revisions/1271322856723
memo at wyona.com
memo at wyona.com
Thu Apr 15 10:35:49 CEST 2010
Author: memo
Date: 2010-04-15 10:35:49 +0200 (Thu, 15 Apr 2010)
New Revision: 48811
Added:
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/content
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/meta
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/content
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/meta
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/content
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/meta
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/content
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/meta
public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/
public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/
public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/content
public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/meta
Modified:
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml
public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/meta
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.yarep/meta
Log:
JMeter documentation moved from wiki to yanel docs
Modified: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml 2010-04-15 08:35:02 UTC (rev 48810)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml 2010-04-15 08:35:49 UTC (rev 48811)
@@ -5,22 +5,69 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Use of jemeter-ant-task</title>
+ <title>Using JMeter with Yanel</title>
</head>
-<body><h1>How to use the jmeter-ant-task</h1>
-<p>
-Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx
-</p>
-<p>
-To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p><p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.<br/>
-</p>
-<p>
-To execute the test just type ./build.sh jmeter.
-</p>
-<p>
-You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p><p>Note: turn off SSL.<br/>
-</p>
+<body>
+<h1>Using JMeter with Yanel<br /></h1>
+<h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
+<p>JMeter can be used either interactively by running the GUI (<tt>JMETER_HOME/bin/jmeter</tt>), or through the <span class="external">JMeter Ant Task</span>. For the complete JMeter documention, see <a class="external" href="http://jakarta.apache.org/jmeter/usermanual/index.html">http://jakarta.apache.org/jmeter/usermanual/index.html</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></p>
+<h2>How to use the jmeter-ant-task</h2>
+<p>Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx</p>
+<p>To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p>
+<p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.</p>
+<p>To execute the test just type ./build.sh jmeter.</p>
+<p>You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p>
+<p>Note: turn off SSL.</p>
+<h2>Setting up a test plan</h2>
+<p>JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.</p>
+<p>Here is a basic example:</p>
+<ul>
+<li>Start JMeter </li>
+<li>Add a Thread Group to the Test Plan
+<ul>
+<li>Set Number of Threads to the number of concurrent users desired, e.g. 5 </li>
+<li>Set the Ramp-Up Period to e.g. 1, that means that JMeter will start with 1 thread/user, and add 1 user every second to reach 5 users after 5 seconds </li>
+<li>Set the Loop Count to 1 (we'll set this later) </li>
+</ul>
+</li>
+<li>Add the configuration element HTTP Request Defaults as a child to the thread group
+<ul>
+<li>Set Server Name/IP & Port, e.g. <tt>127.0.0.1</tt> and <tt>8080</tt> </li>
+<li>Set the Default Protocol, e.g. HTTP </li>
+</ul>
+</li>
+<li>Add a Loop Controller element as a child to the thread group
+<ul>
+<li>Set the Loop Count, e.g. 100 </li>
+</ul>
+</li>
+<li>Add an HTTP Request element as a child to the Loop Controller
+<ul>
+<li>Set the Method, e.g. GET </li>
+<li>Set the path to the page you want to test, e.g. <tt>de/index.html</tt> (without the server address, because this is already set in the HTTP Request Defaults element) </li>
+</ul>
+</li>
+<li>Add a Response Assertion element as a child to the HTTP Request
+<ul>
+<li>Add a pattern to test for existence on the page tested (i.e. <tt>de/index.html</tt>) </li>
+</ul>
+</li>
+<li>Add a Constant Timer as a child to the Loop Controller element
+<ul>
+<li>Set the Thread Delay, e.g. to 500 ms (this tells JMeter to wait 5 milliseconds between consecutive HTTP requests within the loop) </li>
+</ul>
+</li>
+<li>To view the results of the test, add one or more Listener Elements to the Thread Group, e.g. Graph Results, or View Results in Table </li>
+<li>Save the Test Plan </li>
+</ul>
+<p>This test plan should now look like this:</p>
+<pre>Test Plan<br /> |__ Thread Group<br /> |__ HTTP Request Defaults<br /> |__ Loop Controller<br /> | |__ HTTP Request<br /> | | |__ Response Assertion<br /> | |__ Constant Timer<br /> |__ Graph Results<br /> |__ View Results in Table<br /></pre>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">More Documentation</h2>
+<p>Other resources on testing:</p>
+<ul>
+<li><a href="testing-framework.html">Yanel Testing Framework</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></li>
+</ul>
</body>
</html>
\ No newline at end of file
Modified: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/meta 2010-04-15 08:35:02 UTC (rev 48810)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -1 +1,7 @@
+yarep_size<long>:4248
+yarep_checkinDate<date>:2010-04-15T11:17:28:485+0200
+yarep_lastModifed<long>:1271323048000
yarep_type<string>:resource
+yarep_checkoutUserID<string>:lenya
+yarep_isCheckedOut<boolean>:false
+yarep_checkoutDate<date>:2010-04-15T11:16:39:479+0200
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/content 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,73 @@
+<?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>Use of jemeter-ant-task</title>
+</head>
+
+
+<body>
+<h1>How to use the jmeter-ant-task</h1>
+<p>Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx</p>
+<p>To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p>
+<p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.</p>
+<p>To execute the test just type ./build.sh jmeter.</p>
+<p>You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p>
+<p>Note: turn off SSL.</p>
+<h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
+<p>JMeter can be used either interactively by running the GUI (<tt>JMETER_HOME/bin/jmeter</tt>), or through the <a class="external" href="http://www.yanel.org/en/documentation/jmeter.html">JMeter Ant Task</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" />. For the complete JMeter documention, see <a class="external" href="http://jakarta.apache.org/jmeter/usermanual/index.html">http://jakarta.apache.org/jmeter/usermanual/index.html</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></p>
+<h2>Setting up a test plan</h2>
+<p>JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.</p>
+<p>Here is a basic example:</p>
+<ul>
+<li>Start JMeter </li>
+<li>Add a Thread Group to the Test Plan
+<ul>
+<li>Set Number of Threads to the number of concurrent users desired, e.g. 5 </li>
+<li>Set the Ramp-Up Period to e.g. 1, that means that JMeter will start with 1 thread/user, and add 1 user every second to reach 5 users after 5 seconds </li>
+<li>Set the Loop Count to 1 (we'll set this later) </li>
+</ul>
+</li>
+<li>Add the configuration element HTTP Request Defaults as a child to the thread group
+<ul>
+<li>Set Server Name/IP & Port, e.g. <tt>127.0.0.1</tt> and <tt>8080</tt> </li>
+<li>Set the Default Protocol, e.g. HTTP </li>
+</ul>
+</li>
+<li>Add a Loop Controller element as a child to the thread group
+<ul>
+<li>Set the Loop Count, e.g. 100 </li>
+</ul>
+</li>
+<li>Add an HTTP Request element as a child to the Loop Controller
+<ul>
+<li>Set the Method, e.g. GET </li>
+<li>Set the path to the page you want to test, e.g. <tt>de/index.html</tt> (without the server address, because this is already set in the HTTP Request Defaults element) </li>
+</ul>
+</li>
+<li>Add a Response Assertion element as a child to the HTTP Request
+<ul>
+<li>Add a pattern to test for existence on the page tested (i.e. <tt>de/index.html</tt>) </li>
+</ul>
+</li>
+<li>Add a Constant Timer as a child to the Loop Controller element
+<ul>
+<li>Set the Thread Delay, e.g. to 500 ms (this tells JMeter to wait 5 milliseconds between consecutive HTTP requests within the loop) </li>
+</ul>
+</li>
+<li>To view the results of the test, add one or more Listener Elements to the Thread Group, e.g. Graph Results, or View Results in Table </li>
+<li>Save the Test Plan </li>
+</ul>
+<p>This test plan should now look like this:</p>
+<pre>Test Plan<br /> |__ Thread Group<br /> |__ HTTP Request Defaults<br /> |__ Loop Controller<br /> | |__ HTTP Request<br /> | | |__ Response Assertion<br /> | |__ Constant Timer<br /> |__ Graph Results<br /> |__ View Results in Table<br /></pre>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">More Documentation</h2>
+<p>Other resources on testing:</p>
+<ul>
+<li><a class="external" href="http://www.yanel.org/en/documentation/testing-framework.html">Yanel Testing Framework</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /> </li>
+<li><a class="external" href="http://www.yanel.org/en/documentation/jmeter.html">JMeter Ant Task</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /> </li>
+</ul>
+</body>
+</html>
\ No newline at end of file
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317398096/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,11 @@
+yarep_size<long>:4583
+workflow-state<string>:draft
+yarep_lastModifed<long>:1271317398000
+yarep_type<string>:resource
+yarep_revisionCreator<string>:lenya
+yarep_checkoutUserID<string>:lenya
+workflow-date<date>:2010-04-15T09:43:18:249+0200
+yarep_isCheckedOut<boolean>:false
+yarep_checkoutDate<date>:2010-04-15T09:41:29:031+0200
+yarep_revisionCreationDate<date>:2010-04-15T09:43:18:137+0200
+yarep_revisionComment<string>:Updated with tinyMCE
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/content 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,72 @@
+<?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>Use of jemeter-ant-task</title>
+</head>
+
+
+<body>
+<h1>How to use the jmeter-ant-task</h1>
+<p>Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx</p>
+<p>To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p>
+<p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.</p>
+<p>To execute the test just type ./build.sh jmeter.</p>
+<p>You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p>
+<p>Note: turn off SSL.</p>
+<h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
+<p>JMeter can be used either interactively by running the GUI (<tt>JMETER_HOME/bin/jmeter</tt>), or through the <a class="external" href="http://www.yanel.org/en/documentation/jmeter.html">JMeter Ant Task</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" />. For the complete JMeter documention, see <a class="external" href="http://jakarta.apache.org/jmeter/usermanual/index.html">http://jakarta.apache.org/jmeter/usermanual/index.html</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></p>
+<h2>Setting up a test plan</h2>
+<p>JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.</p>
+<p>Here is a basic example:</p>
+<ul>
+<li>Start JMeter </li>
+<li>Add a Thread Group to the Test Plan
+<ul>
+<li>Set Number of Threads to the number of concurrent users desired, e.g. 5 </li>
+<li>Set the Ramp-Up Period to e.g. 1, that means that JMeter will start with 1 thread/user, and add 1 user every second to reach 5 users after 5 seconds </li>
+<li>Set the Loop Count to 1 (we'll set this later) </li>
+</ul>
+</li>
+<li>Add the configuration element HTTP Request Defaults as a child to the thread group
+<ul>
+<li>Set Server Name/IP & Port, e.g. <tt>127.0.0.1</tt> and <tt>8080</tt> </li>
+<li>Set the Default Protocol, e.g. HTTP </li>
+</ul>
+</li>
+<li>Add a Loop Controller element as a child to the thread group
+<ul>
+<li>Set the Loop Count, e.g. 100 </li>
+</ul>
+</li>
+<li>Add an HTTP Request element as a child to the Loop Controller
+<ul>
+<li>Set the Method, e.g. GET </li>
+<li>Set the path to the page you want to test, e.g. <tt>de/index.html</tt> (without the server address, because this is already set in the HTTP Request Defaults element) </li>
+</ul>
+</li>
+<li>Add a Response Assertion element as a child to the HTTP Request
+<ul>
+<li>Add a pattern to test for existence on the page tested (i.e. <tt>de/index.html</tt>) </li>
+</ul>
+</li>
+<li>Add a Constant Timer as a child to the Loop Controller element
+<ul>
+<li>Set the Thread Delay, e.g. to 500 ms (this tells JMeter to wait 5 milliseconds between consecutive HTTP requests within the loop) </li>
+</ul>
+</li>
+<li>To view the results of the test, add one or more Listener Elements to the Thread Group, e.g. Graph Results, or View Results in Table </li>
+<li>Save the Test Plan </li>
+</ul>
+<p>This test plan should now look like this:</p>
+<pre>Test Plan<br /> |__ Thread Group<br /> |__ HTTP Request Defaults<br /> |__ Loop Controller<br /> | |__ HTTP Request<br /> | | |__ Response Assertion<br /> | |__ Constant Timer<br /> |__ Graph Results<br /> |__ View Results in Table<br /></pre>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">More Documentation</h2>
+<p>Other resources on testing:</p>
+<ul>
+<li><a href="testing-framework.html">Yanel Testing Framework</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></li>
+</ul>
+</body>
+</html>
\ No newline at end of file
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271317516898/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,12 @@
+yarep_size<long>:4332
+workflow-state<string>:draft
+yarep_checkinDate<date>:2010-04-15T09:43:18:228+0200
+yarep_type<string>:resource
+yarep_lastModifed<long>:1271317516000
+yarep_revisionCreator<string>:lenya
+yarep_checkoutUserID<string>:lenya
+workflow-date<date>:2010-04-15T09:45:16:971+0200
+yarep_checkoutDate<date>:2010-04-15T09:44:21:098+0200
+yarep_isCheckedOut<boolean>:false
+yarep_revisionCreationDate<date>:2010-04-15T09:45:16:907+0200
+yarep_revisionComment<string>:Updated with tinyMCE
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/content 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,73 @@
+<?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>Using JMeter with Yanel</title>
+</head>
+
+
+<body>
+<h1>Using JMeter with Yanel<br /></h1>
+<h2>How to use the jmeter-ant-task</h2>
+<p>Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx</p>
+<p>To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p>
+<p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.</p>
+<p>To execute the test just type ./build.sh jmeter.</p>
+<p>You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p>
+<p>Note: turn off SSL.</p>
+<h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
+<p>JMeter can be used either interactively by running the GUI (<tt>JMETER_HOME/bin/jmeter</tt>), or through the <a class="external" href="http://www.yanel.org/en/documentation/jmeter.html">JMeter Ant Task</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" />. For the complete JMeter documention, see <a class="external" href="http://jakarta.apache.org/jmeter/usermanual/index.html">http://jakarta.apache.org/jmeter/usermanual/index.html</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></p>
+<h2>Setting up a test plan</h2>
+<p>JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.</p>
+<p>Here is a basic example:</p>
+<ul>
+<li>Start JMeter </li>
+<li>Add a Thread Group to the Test Plan
+<ul>
+<li>Set Number of Threads to the number of concurrent users desired, e.g. 5 </li>
+<li>Set the Ramp-Up Period to e.g. 1, that means that JMeter will start with 1 thread/user, and add 1 user every second to reach 5 users after 5 seconds </li>
+<li>Set the Loop Count to 1 (we'll set this later) </li>
+</ul>
+</li>
+<li>Add the configuration element HTTP Request Defaults as a child to the thread group
+<ul>
+<li>Set Server Name/IP & Port, e.g. <tt>127.0.0.1</tt> and <tt>8080</tt> </li>
+<li>Set the Default Protocol, e.g. HTTP </li>
+</ul>
+</li>
+<li>Add a Loop Controller element as a child to the thread group
+<ul>
+<li>Set the Loop Count, e.g. 100 </li>
+</ul>
+</li>
+<li>Add an HTTP Request element as a child to the Loop Controller
+<ul>
+<li>Set the Method, e.g. GET </li>
+<li>Set the path to the page you want to test, e.g. <tt>de/index.html</tt> (without the server address, because this is already set in the HTTP Request Defaults element) </li>
+</ul>
+</li>
+<li>Add a Response Assertion element as a child to the HTTP Request
+<ul>
+<li>Add a pattern to test for existence on the page tested (i.e. <tt>de/index.html</tt>) </li>
+</ul>
+</li>
+<li>Add a Constant Timer as a child to the Loop Controller element
+<ul>
+<li>Set the Thread Delay, e.g. to 500 ms (this tells JMeter to wait 5 milliseconds between consecutive HTTP requests within the loop) </li>
+</ul>
+</li>
+<li>To view the results of the test, add one or more Listener Elements to the Thread Group, e.g. Graph Results, or View Results in Table </li>
+<li>Save the Test Plan </li>
+</ul>
+<p>This test plan should now look like this:</p>
+<pre>Test Plan<br /> |__ Thread Group<br /> |__ HTTP Request Defaults<br /> |__ Loop Controller<br /> | |__ HTTP Request<br /> | | |__ Response Assertion<br /> | |__ Constant Timer<br /> |__ Graph Results<br /> |__ View Results in Table<br /></pre>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">More Documentation</h2>
+<p>Other resources on testing:</p>
+<ul>
+<li><a href="testing-framework.html">Yanel Testing Framework</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></li>
+</ul>
+</body>
+</html>
\ No newline at end of file
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271322978408/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,12 @@
+yarep_size<long>:4384
+workflow-state<string>:draft
+yarep_checkinDate<date>:2010-04-15T09:45:16:943+0200
+yarep_lastModifed<long>:1271322978000
+yarep_type<string>:resource
+yarep_revisionCreator<string>:lenya
+yarep_checkoutUserID<string>:lenya
+workflow-date<date>:2010-04-15T11:16:18:627+0200
+yarep_isCheckedOut<boolean>:false
+yarep_checkoutDate<date>:2010-04-15T11:15:25:637+0200
+yarep_revisionCreationDate<date>:2010-04-15T11:16:18:435+0200
+yarep_revisionComment<string>:Updated with tinyMCE
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/content 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,73 @@
+<?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>Using JMeter with Yanel</title>
+</head>
+
+
+<body>
+<h1>Using JMeter with Yanel<br /></h1>
+<h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
+<p>JMeter can be used either interactively by running the GUI (<tt>JMETER_HOME/bin/jmeter</tt>), or through the <span class="external">JMeter Ant Task</span>. For the complete JMeter documention, see <a class="external" href="http://jakarta.apache.org/jmeter/usermanual/index.html">http://jakarta.apache.org/jmeter/usermanual/index.html</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></p>
+<h2>How to use the jmeter-ant-task</h2>
+<p>Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx</p>
+<p>To make it work you need to install <a href="http://jakarta.apache.org/jmeter/">jmeter2.2</a> (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir</p>
+<p>Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.</p>
+<p>To execute the test just type ./build.sh jmeter.</p>
+<p>You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/</p>
+<p>Note: turn off SSL.</p>
+<h2>Setting up a test plan</h2>
+<p>JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.</p>
+<p>Here is a basic example:</p>
+<ul>
+<li>Start JMeter </li>
+<li>Add a Thread Group to the Test Plan
+<ul>
+<li>Set Number of Threads to the number of concurrent users desired, e.g. 5 </li>
+<li>Set the Ramp-Up Period to e.g. 1, that means that JMeter will start with 1 thread/user, and add 1 user every second to reach 5 users after 5 seconds </li>
+<li>Set the Loop Count to 1 (we'll set this later) </li>
+</ul>
+</li>
+<li>Add the configuration element HTTP Request Defaults as a child to the thread group
+<ul>
+<li>Set Server Name/IP & Port, e.g. <tt>127.0.0.1</tt> and <tt>8080</tt> </li>
+<li>Set the Default Protocol, e.g. HTTP </li>
+</ul>
+</li>
+<li>Add a Loop Controller element as a child to the thread group
+<ul>
+<li>Set the Loop Count, e.g. 100 </li>
+</ul>
+</li>
+<li>Add an HTTP Request element as a child to the Loop Controller
+<ul>
+<li>Set the Method, e.g. GET </li>
+<li>Set the path to the page you want to test, e.g. <tt>de/index.html</tt> (without the server address, because this is already set in the HTTP Request Defaults element) </li>
+</ul>
+</li>
+<li>Add a Response Assertion element as a child to the HTTP Request
+<ul>
+<li>Add a pattern to test for existence on the page tested (i.e. <tt>de/index.html</tt>) </li>
+</ul>
+</li>
+<li>Add a Constant Timer as a child to the Loop Controller element
+<ul>
+<li>Set the Thread Delay, e.g. to 500 ms (this tells JMeter to wait 5 milliseconds between consecutive HTTP requests within the loop) </li>
+</ul>
+</li>
+<li>To view the results of the test, add one or more Listener Elements to the Thread Group, e.g. Graph Results, or View Results in Table </li>
+<li>Save the Test Plan </li>
+</ul>
+<p>This test plan should now look like this:</p>
+<pre>Test Plan<br /> |__ Thread Group<br /> |__ HTTP Request Defaults<br /> |__ Loop Controller<br /> | |__ HTTP Request<br /> | | |__ Response Assertion<br /> | |__ Constant Timer<br /> |__ Graph Results<br /> |__ View Results in Table<br /></pre>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">More Documentation</h2>
+<p>Other resources on testing:</p>
+<ul>
+<li><a href="testing-framework.html">Yanel Testing Framework</a><img class="outlink" src="http://documentation.yanel.wyona.org/wiki/images/out.png" alt="" /></li>
+</ul>
+</body>
+</html>
\ No newline at end of file
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/revisions/1271323048433/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,12 @@
+yarep_size<long>:4248
+workflow-state<string>:draft
+yarep_checkinDate<date>:2010-04-15T11:16:18:571+0200
+yarep_type<string>:resource
+yarep_lastModifed<long>:1271323048000
+yarep_revisionCreator<string>:lenya
+yarep_checkoutUserID<string>:lenya
+workflow-date<date>:2010-04-15T11:17:28:511+0200
+yarep_checkoutDate<date>:2010-04-15T11:16:39:479+0200
+yarep_isCheckedOut<boolean>:false
+yarep_revisionCreationDate<date>:2010-04-15T11:17:28:441+0200
+yarep_revisionComment<string>:Updated with tinyMCE
Modified: 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 2010-04-15 08:35:02 UTC (rev 48810)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml 2010-04-15 08:35:49 UTC (rev 48811)
@@ -1,139 +1,82 @@
-<?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>
-<div class="instructions">
-<h1>Testing Framework</h1>
-<h3>General information</h3>
-There are different kind of tests:
-<ul>
-<li><b>junit</b>: To test specific functionality of certain java components/classes see <a href="http://junit.org/">http://junit.org/</a></li>
-<li><b>htmlunit</b>: To test the web pages (simulating user interaction) see <a href="http://htmlunit.sourceforge.net/">http://htmlunit.sourceforge.net/</a></li>
-<li><b>Canoo</b>: To test the web pages (simulating user interaction) see <a href="http://webtest.canoo.com/">http://webtest.canoo.com</a></li>
-</ul>
-
-<h3>How to run the tests</h3>
-<p>
-After downloading the Yanel source (either via <a href="../../download/source-repository.html">SVN</a> or as <a href="../download/index.html">snapshot</a>) one can run the tests all at once (as we do it within <a href="http://195.226.6.72:8080">Hudson</a>) or
-run the various tests individually.
-</p>
-
-<p>
-If you want to run all at once (including build and start of Yanel), then execute the shell script
-<pre>
-./src/build/targets/continuous-integration/reCI 8080 8443 8005 8009 /home/michi/local/canoo-webtest-3.0-R_1758
-</pre>
-whereas please make sure to have <a href="http://webtest.canoo.com">Canoo webtests</a> installed.
-</p>
-
-<p>
-If you want to run the tests individually, then it's necessary to build and start yanel before running the tests.
-</p>
-
-<p>
-<b>IMPORTANT:</b> If you want to run the htmlunit tests, you have to start tomcat and configure
-the host and url in
-<pre>
-$YANEL_HOME/src/test/htmlunit/local.htmlunit-properties.xml
-</pre>
-</p>
-
-<p>
-Then execute in $YANEL_HOME:
-<pre>
-./build.sh test
-</pre>
-</p>
-
-<p>
-To run single tests standalone:
-<pre>
-cd $YANEL_HOME
-./build.sh -f src/test/build.xml junit -Dtest.class.name=org.wyona.yanel.impl.map.MapImplTest
-./build.sh -f src/test/build.xml htmlunit -Dtest.class.name=org.wyona.yanel.htmlunit.yanelwebsite.SimpleWebTest
-</pre>
-</p>
-
-<p>
-To run Yanel specific Canoo webtests (including junit and htmlunit):
-<pre>
-./build.sh test -Dwebtest.home.dir=/usr/local/canoo-webtest-3.0-R_1758 -Dwebtest.config.host=localhost -Dwebtest.config.protocol=http -Dwebtest.config.port=8080 -Dheadless=
-</pre>
-</p>
-
-<p>
-whereas if the global property 'headless' is set, then also the Canoo property 'wt.headless' is set within src/build/targets/test.xml, which means no monitor is displayed and no browser is opened to display the Canoo results.
-</p>
-
-<p>
-Some Canoo web-tests are located at
-<pre>
-src/realms/use-cases/yanel/src/test/canoo/
-src/realms/yanel-website/src/test/canoo/
-</pre>
-whereas also see the README.txt files within these directories.
-</p>
-
-<p>
-To run realm specific Canoo webtests
-<pre>
-./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml
-</pre>
-or to run a specific target
-<pre>
-./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml MY_TARGET_NAME
-</pre>
-</p>
-
-<p>
-whereas make sure to configure the properties within the realm first, e.g.
-<pre>
-src/realms/yanel-website/src/test/canoo/build.properties
-src/realms/yanel-website/src/test/canoo/local.build.properties
-</pre>
-</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 for junit tests<br/>
-</p>
-<p>
-*WebTest.java e.g. MyResourceWebTest.java for htmlunit tests<br/>
-</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>
-
-<h3>Misc</h3>
-<p>
-In the case of Mac OS X (at least Snow Leopard) and Java 1.6 one needs to add xalan-2.7.0.jar to the directory <code>/Library/Java/Extensions</code> (also see <a href="http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html">http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html</a>).
-</p>
-</div>
-</body>
-</html>
+<?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>
+<div class="instructions">
+<h1>Testing Framework</h1>
+<h3>General information</h3>
+There are different kind of tests:
+<ul>
+<li><strong>junit</strong>: To test specific functionality of certain java components/classes see <a href="http://junit.org/">http://junit.org/</a></li>
+<li><strong>htmlunit</strong>: To test the web pages (simulating user interaction) see <a href="http://htmlunit.sourceforge.net/">http://htmlunit.sourceforge.net/</a></li>
+<li><strong>Canoo</strong>: To test the web pages (simulating user interaction) see <a href="http://webtest.canoo.com/">http://webtest.canoo.com</a></li>
+<li><strong>JMeter</strong>: To load test web applications (simulating user interaction) see <a href="http://jakarta.apache.org/jmeter/">http://jakarta.apache.org/jmeter/</a></li>
+</ul>
+<h3>How to run the tests</h3>
+<p>After downloading the Yanel source (either via <a href="../../download/source-repository.html">SVN</a> or as <a href="../download/index.html">snapshot</a>) one can run the tests all at once (as we do it within <a href="http://195.226.6.72:8080">Hudson</a>) or run the various tests individually.</p>
+<p>If you want to run all at once (including build and start of Yanel), then execute the shell script</p>
+<pre>./src/build/targets/continuous-integration/reCI 8080 8443 8005 8009 /home/michi/local/canoo-webtest-3.0-R_1758
+</pre>
+whereas please make sure to have <a href="http://webtest.canoo.com">Canoo webtests</a> installed.
+<p> </p>
+<p>If you want to run the tests individually, then it's necessary to build and start yanel before running the tests.</p>
+<p><strong>IMPORTANT:</strong> If you want to run the htmlunit tests, you have to start tomcat and configure the host and url in</p>
+<pre>$YANEL_HOME/src/test/htmlunit/local.htmlunit-properties.xml
+</pre>
+<p> </p>
+<p>Then execute in $YANEL_HOME:</p>
+<pre>./build.sh test
+</pre>
+<p> </p>
+<p>To run single tests standalone:</p>
+<pre>cd $YANEL_HOME
+./build.sh -f src/test/build.xml junit -Dtest.class.name=org.wyona.yanel.impl.map.MapImplTest
+./build.sh -f src/test/build.xml htmlunit -Dtest.class.name=org.wyona.yanel.htmlunit.yanelwebsite.SimpleWebTest
+</pre>
+<p> </p>
+<p>To run Yanel specific Canoo webtests (including junit and htmlunit):</p>
+<pre>./build.sh test -Dwebtest.home.dir=/usr/local/canoo-webtest-3.0-R_1758 -Dwebtest.config.host=localhost -Dwebtest.config.protocol=http -Dwebtest.config.port=8080 -Dheadless=
+</pre>
+<p> </p>
+<p>whereas if the global property 'headless' is set, then also the Canoo property 'wt.headless' is set within src/build/targets/test.xml, which means no monitor is displayed and no browser is opened to display the Canoo results.</p>
+<p>Some Canoo web-tests are located at</p>
+<pre>src/realms/use-cases/yanel/src/test/canoo/
+src/realms/yanel-website/src/test/canoo/
+</pre>
+whereas also see the README.txt files within these directories.
+<p> </p>
+<p>To run realm specific Canoo webtests</p>
+<pre>./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml
+</pre>
+or to run a specific target
+<pre>./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml MY_TARGET_NAME
+</pre>
+<p> </p>
+<p>whereas make sure to configure the properties within the realm first, e.g.</p>
+<pre>src/realms/yanel-website/src/test/canoo/build.properties
+src/realms/yanel-website/src/test/canoo/local.build.properties<br /></pre>
+<p>To run JMeter tests, use the "jmeter" target:</p>
+<pre>./build.sh [-f path/to/build.xml] jmeter<br /></pre>
+<p> </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 for junit tests</p>
+<p>*WebTest.java e.g. MyResourceWebTest.java for htmlunit tests</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).</p>
+<p>For writing JMeter tests, see the <a href="jmeter.html">JMeter page</a>.</p>
+<h3>Misc</h3>
+<p>In the case of Mac OS X (at least Snow Leopard) and Java 1.6 one needs to add xalan-2.7.0.jar to the directory <code>/Library/Java/Extensions</code> (also see <a href="http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html">http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html</a>).</p>
+</div>
+</body>
+</html>
\ No newline at end of file
Modified: public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/meta 2010-04-15 08:35:02 UTC (rev 48810)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -1,7 +1,7 @@
+yarep_size<long>:5155
+yarep_checkinDate<date>:2010-04-15T11:14:16:876+0200
+yarep_lastModifed<long>:1271322856000
yarep_type<string>:resource
+yarep_checkoutUserID<string>:lenya
+yarep_checkoutDate<date>:2010-04-15T11:08:48:101+0200
yarep_isCheckedOut<boolean>:false
-yarep_checkoutDate<date>:2008-03-14T12:22:41-0600
-yarep_size<long>:2154
-yarep_checkoutUserID<string>:alice
-yarep_lastModifed<long>:1205519507000
-yarep_checkinDate<date>:2008-03-14T12:31:48-0600
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/content 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,82 @@
+<?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>
+<div class="instructions">
+<h1>Testing Framework</h1>
+<h3>General information</h3>
+There are different kind of tests:
+<ul>
+<li><strong>junit</strong>: To test specific functionality of certain java components/classes see <a href="http://junit.org/">http://junit.org/</a></li>
+<li><strong>htmlunit</strong>: To test the web pages (simulating user interaction) see <a href="http://htmlunit.sourceforge.net/">http://htmlunit.sourceforge.net/</a></li>
+<li><strong>Canoo</strong>: To test the web pages (simulating user interaction) see <a href="http://webtest.canoo.com/">http://webtest.canoo.com</a></li>
+<li><strong>JMeter</strong>: To load test web applications (simulating user interaction) see <a href="http://jakarta.apache.org/jmeter/">http://jakarta.apache.org/jmeter/</a></li>
+</ul>
+<h3>How to run the tests</h3>
+<p>After downloading the Yanel source (either via <a href="../../download/source-repository.html">SVN</a> or as <a href="../download/index.html">snapshot</a>) one can run the tests all at once (as we do it within <a href="http://195.226.6.72:8080">Hudson</a>) or run the various tests individually.</p>
+<p>If you want to run all at once (including build and start of Yanel), then execute the shell script</p>
+<pre>./src/build/targets/continuous-integration/reCI 8080 8443 8005 8009 /home/michi/local/canoo-webtest-3.0-R_1758
+</pre>
+whereas please make sure to have <a href="http://webtest.canoo.com">Canoo webtests</a> installed.
+<p> </p>
+<p>If you want to run the tests individually, then it's necessary to build and start yanel before running the tests.</p>
+<p><strong>IMPORTANT:</strong> If you want to run the htmlunit tests, you have to start tomcat and configure the host and url in</p>
+<pre>$YANEL_HOME/src/test/htmlunit/local.htmlunit-properties.xml
+</pre>
+<p> </p>
+<p>Then execute in $YANEL_HOME:</p>
+<pre>./build.sh test
+</pre>
+<p> </p>
+<p>To run single tests standalone:</p>
+<pre>cd $YANEL_HOME
+./build.sh -f src/test/build.xml junit -Dtest.class.name=org.wyona.yanel.impl.map.MapImplTest
+./build.sh -f src/test/build.xml htmlunit -Dtest.class.name=org.wyona.yanel.htmlunit.yanelwebsite.SimpleWebTest
+</pre>
+<p> </p>
+<p>To run Yanel specific Canoo webtests (including junit and htmlunit):</p>
+<pre>./build.sh test -Dwebtest.home.dir=/usr/local/canoo-webtest-3.0-R_1758 -Dwebtest.config.host=localhost -Dwebtest.config.protocol=http -Dwebtest.config.port=8080 -Dheadless=
+</pre>
+<p> </p>
+<p>whereas if the global property 'headless' is set, then also the Canoo property 'wt.headless' is set within src/build/targets/test.xml, which means no monitor is displayed and no browser is opened to display the Canoo results.</p>
+<p>Some Canoo web-tests are located at</p>
+<pre>src/realms/use-cases/yanel/src/test/canoo/
+src/realms/yanel-website/src/test/canoo/
+</pre>
+whereas also see the README.txt files within these directories.
+<p> </p>
+<p>To run realm specific Canoo webtests</p>
+<pre>./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml
+</pre>
+or to run a specific target
+<pre>./build.sh -f src/realms/yanel-website/src/test/canoo/build.xml MY_TARGET_NAME
+</pre>
+<p> </p>
+<p>whereas make sure to configure the properties within the realm first, e.g.</p>
+<pre>src/realms/yanel-website/src/test/canoo/build.properties
+src/realms/yanel-website/src/test/canoo/local.build.properties<br /></pre>
+<p>To run JMeter tests, use the "jmeter" target:</p>
+<pre>./build.sh [-f path/to/build.xml] jmeter<br /></pre>
+<p> </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 for junit tests</p>
+<p>*WebTest.java e.g. MyResourceWebTest.java for htmlunit tests</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).</p>
+<p>For writing JMeter tests, see the <a href="jmeter.html">JMeter page</a>.</p>
+<h3>Misc</h3>
+<p>In the case of Mac OS X (at least Snow Leopard) and Java 1.6 one needs to add xalan-2.7.0.jar to the directory <code>/Library/Java/Extensions</code> (also see <a href="http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html">http://blog.jonasbandi.net/2009/06/running-canoo-webtest-30-on-os-x.html</a>).</p>
+</div>
+</body>
+</html>
\ No newline at end of file
Added: public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/testing-framework/en.xhtml.yarep/revisions/1271322856723/meta 2010-04-15 08:35:49 UTC (rev 48811)
@@ -0,0 +1,12 @@
+yarep_size<long>:5155
+workflow-state<string>:draft
+yarep_checkinDate<date>:2008-03-14T19:31:48:000+0100
+yarep_type<string>:resource
+yarep_lastModifed<long>:1271322856000
+yarep_revisionCreator<string>:lenya
+yarep_checkoutUserID<string>:lenya
+workflow-date<date>:2010-04-15T11:14:16:977+0200
+yarep_isCheckedOut<boolean>:false
+yarep_checkoutDate<date>:2010-04-15T11:08:48:101+0200
+yarep_revisionCreationDate<date>:2010-04-15T11:14:16:744+0200
+yarep_revisionComment<string>:Updated with tinyMCE
More information about the Yanel-commits
mailing list