[Yanel-commits] rev 49266 - in public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter: . en.xhtml.yarep

memo at wyona.com memo at wyona.com
Tue May 4 09:32:40 CEST 2010


Author: memo
Date: 2010-05-04 09:32:39 +0200 (Tue, 04 May 2010)
New Revision: 49266

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
Log:
documentation on how to login to Yanel using JMeter added

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-05-04 06:27:01 UTC (rev 49265)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml	2010-05-04 07:32:39 UTC (rev 49266)
@@ -1,14 +1,8 @@
-<?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">
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
 <head>
-  <title>Using JMeter with Yanel</title>
+<title>Untitled document</title>
 </head>
-
-
 <body>
 <h1>Using JMeter with Yanel<br /></h1>
 <h2 id="section-Testing+Guidelines-UsingJMeter">Using JMeter</h2>
@@ -25,36 +19,36 @@
 <p>Here is a basic example:</p>
 <ul>
 <li>Start JMeter </li>
-<li>Add a Thread Group to the Test Plan     
+<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     
+<li>Add the configuration element HTTP Request Defaults  as a child to the thread group      
 <ul>
 <li>Set Server Name/IP &amp; 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     
+<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     
+<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     
+<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     
+<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>
@@ -64,7 +58,26 @@
 </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>
+<h2 id="section-Testing+Guidelines-MoreDocumentation">Login</h2>
+<p>If you need to login to the website for testing, you will need these 2 additions to your thread group:</p>
+<ul>
+<li>An <a href="http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager">HTTP Cookie Manager</a></li>
+<li>An HTTP Request with the following configuration:
+<ul>
+<li>Method = POST</li>
+<li>Path = {test-page}?yanel.toolbar=on<br />(this will cause Yanel to redirect to the login page)</li>
+<li>Parameters:
+<ul>
+<li>yanel.login.username = ...</li>
+<li>yanel.login.password = ...</li>
+<li>regular-login = Login</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<p>For more detailed information, see the <a href="http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#logging_in">JMeter Documentation</a>. Also, it might help to use the <a href="http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Proxy_Server">JMeter Proxy</a> to figure out how the login procedure is actually working, or to debug it if it doesn't seem to be doing what you expect.</p>
+<h2>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>

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-05-04 06:27:01 UTC (rev 49265)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation/jmeter/en.xhtml.yarep/meta	2010-05-04 07:32:39 UTC (rev 49266)
@@ -1,7 +1,7 @@
-yarep_size<long>:4248
-yarep_checkinDate<date>:2010-04-15T11:17:28:485+0200
-yarep_lastModifed<long>:1271323048000
+yarep_size<long>:5241
+yarep_checkinDate<date>:2010-05-04T10:19:15:011+0200
 yarep_type<string>:resource
+yarep_lastModifed<long>:1272961154000
 yarep_checkoutUserID<string>:lenya
+yarep_checkoutDate<date>:2010-05-04T09:51:16:901+0200
 yarep_isCheckedOut<boolean>:false
-yarep_checkoutDate<date>:2010-04-15T11:16:39:479+0200



More information about the Yanel-commits mailing list