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 2007/08/31 19:31:17 UTC

svn commit: r571527 - in /jakarta/jmeter/branches/rel-2-2: docs/images/screenshots/ docs/usermanual/ xdocs/images/screenshots/ xdocs/usermanual/

Author: sebb
Date: Fri Aug 31 10:31:15 2007
New Revision: 571527

URL: http://svn.apache.org/viewvc?rev=571527&view=rev
Log:
Add sample HTTP login

Added:
    jakarta/jmeter/branches/rel-2-2/docs/images/screenshots/http_login.png   (with props)
    jakarta/jmeter/branches/rel-2-2/xdocs/images/screenshots/http_login.png   (with props)
Modified:
    jakarta/jmeter/branches/rel-2-2/docs/usermanual/build-web-test-plan.html
    jakarta/jmeter/branches/rel-2-2/docs/usermanual/index.html
    jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/build-web-test-plan.xml
    jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/index.xml

Added: jakarta/jmeter/branches/rel-2-2/docs/images/screenshots/http_login.png
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/docs/images/screenshots/http_login.png?rev=571527&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/jmeter/branches/rel-2-2/docs/images/screenshots/http_login.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: jakarta/jmeter/branches/rel-2-2/docs/usermanual/build-web-test-plan.html
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/docs/usermanual/build-web-test-plan.html?rev=571527&r1=571526&r2=571527&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/docs/usermanual/build-web-test-plan.html (original)
+++ jakarta/jmeter/branches/rel-2-2/docs/usermanual/build-web-test-plan.html Fri Aug 31 10:31:15 2007
@@ -465,6 +465,47 @@
 		</td></tr>
 		<tr><td><br></td></tr>
 	 </table>
+						  									 <table border="0" cellspacing="0" cellpadding="2" width="100%">
+		<tr><td bgcolor="#525D76">
+		  <font color="#ffffff" face="arial,helvetica,sanserif">
+			 <a name="logging_in"><strong>5.6 Logging in to a web-site</strong></a>
+		  </font>
+		</td></tr>
+		<tr><td>
+		  <blockquote>
+		  									 				<p	>
+								
+It's not the case here, but some web-sites require you to login before permitting you to perform certain actions.
+In a web-browser, the login will be shown as a form for the user name and password,
+and a button to submit the form.
+The button generates a POST request, passing the values of the form items as parameters.
+
+						</p>
+							  									 				<p	>
+								
+To do this in JMeter, add an HTTP Request, and set the method to POST.
+You'll need to know the names of the fields used by the form, and the target page.
+These can be found out by inspecting the code of the login page.
+[If this is difficult to do, you can use the 
+												<a	 href="component_reference.html#HTTP_Proxy_Server">
+								JMeter Proxy Recorder
+						</a>
+									 to record the login sequence.]
+Set the path to the target of the submit button. 
+Click the Add button twice and enter the username and password details.
+Sometimes the login form contains additional hidden fields.
+These will need to be added as well.
+
+						</p>
+							  									 				<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="../images/screenshots/http_login.png"><br>
+	<font size="-1">						
+Figure 5.8. Sample HTTP login request
+			</font></td></tr></table></p>
+							  		  </blockquote>
+		  </p>
+		</td></tr>
+		<tr><td><br></td></tr>
+	 </table>
 						  						    		<table>
 		<tr>
 		<td bgcolor="#525D76">

Modified: jakarta/jmeter/branches/rel-2-2/docs/usermanual/index.html
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/docs/usermanual/index.html?rev=571527&r1=571526&r2=571527&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/docs/usermanual/index.html (original)
+++ jakarta/jmeter/branches/rel-2-2/docs/usermanual/index.html Fri Aug 31 10:31:15 2007
@@ -808,6 +808,13 @@
 						</a>
 							</li>
 									
+		
+												<li	>
+												<a	 href="build-web-test-plan.html#logging_in">
+								5.6 Logging in to a web-site
+						</a>
+							</li>
+									
 	 
 						</ul>
 									

Added: jakarta/jmeter/branches/rel-2-2/xdocs/images/screenshots/http_login.png
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/xdocs/images/screenshots/http_login.png?rev=571527&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jakarta/jmeter/branches/rel-2-2/xdocs/images/screenshots/http_login.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/build-web-test-plan.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/build-web-test-plan.xml?rev=571527&r1=571526&r2=571527&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/build-web-test-plan.xml (original)
+++ jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/build-web-test-plan.xml Fri Aug 31 10:31:15 2007
@@ -206,5 +206,27 @@
 
 </section>
 
+<section name="&sect-num;.6 Logging in to a web-site" anchor="logging_in">
+<p>
+It's not the case here, but some web-sites require you to login before permitting you to perform certain actions.
+In a web-browser, the login will be shown as a form for the user name and password,
+and a button to submit the form.
+The button generates a POST request, passing the values of the form items as parameters.
+</p>
+<p>
+To do this in JMeter, add an HTTP Request, and set the method to POST.
+You'll need to know the names of the fields used by the form, and the target page.
+These can be found out by inspecting the code of the login page.
+[If this is difficult to do, you can use the <a href="component_reference.html#HTTP_Proxy_Server">JMeter Proxy Recorder</a> to record the login sequence.]
+Set the path to the target of the submit button. 
+Click the Add button twice and enter the username and password details.
+Sometimes the login form contains additional hidden fields.
+These will need to be added as well.
+</p>
+<figure image="http_login.png">
+Figure &sect-num;.8. Sample HTTP login request</figure>
+
+</section>
+
 </body>
 </document>

Modified: jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/index.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/index.xml?rev=571527&r1=571526&r2=571527&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/index.xml (original)
+++ jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/index.xml Fri Aug 31 10:31:15 2007
@@ -121,6 +121,7 @@
 		<li><a href="build-web-test-plan.html#adding_cookie_support">5.3 Adding Cookie Support</a></li>
 		<li><a href="build-web-test-plan.html#adding_requests">5.4 Adding HTTP Requests</a></li>
 		<li><a href="build-web-test-plan.html#adding_listener">5.5 Adding a Listener to View/Store the Test Results</a></li>
+		<li><a href="build-web-test-plan.html#logging_in">5.6 Logging in to a web-site</a></li>
 	 </ul>
  <li><a name="build-adv-web-test-plan"/><a href="build-adv-web-test-plan.html">6. Building an Advanced Web Test Plan</a></li>
 	 <ul>



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