You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/23 21:14:39 UTC

svn commit: r396305 - /jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml

Author: sebb
Date: Sun Apr 23 12:14:37 2006
New Revision: 396305

URL: http://svn.apache.org/viewcvs?rev=396305&view=rev
Log:
Add user variables section

Modified:
    jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml

Modified: jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml?rev=396305&r1=396304&r2=396305&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml (original)
+++ jakarta/jmeter/branches/rel-2-1/xdocs/usermanual/best-practices.xml Sun Apr 23 12:14:37 2006
@@ -93,7 +93,31 @@
 with this new features.-->
 </section>
 
-<section name="&sect-num;.5 Reducing resource requirements" anchor="lean_mean">
+<section name="&sect-num;.5 User variables" anchor="user_variables">
+<p>
+Some test plans need to use different values for different users/threads. 
+For example, you might want to test a sequence that requires a unique login for each user.
+This is easy to achieve with the facilities provided by JMeter.
+</p>
+<p>For example:</p>
+<ul>
+<li>Create a text file containing the user names and passwords, separated by commas.
+Put this in the same directory as your test plan.
+</li>
+<li>
+Add a CSV DataSet configuration element to the test plan.
+Name the variables USER and PASS.
+</li>
+<li>
+Replace the login name with ${USER} and the password with ${PASS} on the appropriate
+samplers
+</li>
+</ul>
+<p>The CSV Data Set element will read a new line for each thread. 
+</p>
+</section>
+
+<section name="&sect-num;.6 Reducing resource requirements" anchor="lean_mean">
 <p>
 Some suggestions on reducing resource usage.
 </p>
@@ -106,7 +130,6 @@
 </li>
 <li>Don't use functional mode</li>
 <li>Use CSV output rather than XML</li>
-<li>Only record the sample items that are needed</li>
 </ul>
 </section>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org