Professional Documents
Culture Documents
Apache JMeter - User's Manual - Building An Extended LDAP Test Plan-9
Apache JMeter - User's Manual - Building An Extended LDAP Test Plan-9
html
Download You will create four users that send requests for four tests on the LDAP server.Also, you will tell the users to run their tests twice. So, the total number of
requests is (4 users) x (4 requests) x repeat 2 times) = 32 LDAP requests. To construct the Test Plan, you will use the following elements:
Download Releases Thread Group ,
Developer (Nightly) Builds Adding LDAP Extended Request Defaults ,
Adding LDAP Requests , and
Documentation Adding a Listener to View/Store the Test Results
User Manual This example assumes that the LDAP Server is installed in your Local machine.
Best Practices
Component Reference For the less experienced LDAP users, I build a small LDAP tutorial which shortly explains the several LDAP operations that can be used in building a
Functions Reference complex testplan.
Javadocs
Localisation (Translator's Guide) Take care when using LDAP special characters in the distinghuished name, in that case (eg, you want to use a + sign in a distinghuished name) you need
Building JMeter and Add-Ons to escape the character by adding an "\" sign before that character. extra exeption: if you want to add a \ character in a distinguished name (in an add or
JMeter Wiki rename operation), you need to use 4 backslashes. examples: cn=dolf\+smits to add/search an entry with the name like cn=dolf+smits cn=dolf \\ smits to
FAQ (Wiki) search an entry with the name cn=dolf \ smits cn=c:\\\\log.txt to add an entry with a name like cn=c:\log.txt
Distributed Testing The first step you want to do with every JMeter Test Plan is to add a Thread Group element. The Thread Group tells JMeter the number of
Recording Tests users you want to simulate, how often the users should send requests, and the how many requests they should send.
JUnit Sampler
Access Log Sampler Go ahead and add the ThreadGroup element by first selecting the Test Plan, clicking your right mouse button to get the Add menu, and then
Extending JMeter select Add-->ThreadGroup. You should now see the Thread Group element under Test Plan. If you do not see the element, then "expand"
the Test Plan tree by clicking on the Test Plan element.
Community
Get Involved
Mailing Lists
SVN Repositories
Foundation
ASF
Sponsorship
Thanks
Begin by selecting the Thread Group element. Click your right mouse button to get the Add menu, and then select Add --> Config Element
-->LDAP Extended Request Defaults. Then, select this new element to view its Control Panel.
Like most JMeter elements, the LDAP Extended Request Defaults Control Panel has a name field that you can modify. In this example,
leave this field with the default value.
For each of the different operations, some default values can be filled in. In All cases, when a default is filled in, this is used for the LDAP
extended requests. For each requst, you can override the defaults by filling in the values in the LDAP extended request sampler. When no
1 of 6 9/3/2013 12:45 AM
Apache JMeter - User's Manual: Building an Extended LDAP Test Plan http://jmeter.apache.org/usermanual/build-ldapext-test-plan.html
valueis entered which is necesarry for a test, the test will fail in an unpredictable way!
1. Thread bind
2. Search Test
3. Compare Test
4. Single bind/unbind Test
5. Add Test
6. Modify Test
7. Delete Test
8. Rename entry (moddn)
9. Thread unbind
JMeter sends requests in the order that you add them to the tree.
2 of 6 9/3/2013 12:45 AM
Apache JMeter - User's Manual: Building an Extended LDAP Test Plan http://jmeter.apache.org/usermanual/build-ldapext-test-plan.html
3 of 6 9/3/2013 12:45 AM
Apache JMeter - User's Manual: Building an Extended LDAP Test Plan http://jmeter.apache.org/usermanual/build-ldapext-test-plan.html
When you need the same attribute more than once, just add a new line, add the attribute again, and a different value.
All necessary attributes and values must be specified to pass the test, see picture!
(sometimes the server adds the attribute "objectClass=top", this might give a problem.
4 of 6 9/3/2013 12:45 AM
Apache JMeter - User's Manual: Building an Extended LDAP Test Plan http://jmeter.apache.org/usermanual/build-ldapext-test-plan.html
1. Select the "Thread unbind" button. This will be enough as it just closes the current connection. The information which is
needed is already known by the system
The final element you need to add to your Test Plan is a Listener. This element is responsible for storing all of the results of your LDAP
requests in a file and presenting a visual model of the data.Select the Thread group element and add a View Results Tree (Add --> Listener
-->View Results Tree)
5 of 6 9/3/2013 12:45 AM
Apache JMeter - User's Manual: Building an Extended LDAP Test Plan http://jmeter.apache.org/usermanual/build-ldapext-test-plan.html
In this listener you have three tabs to view, the sampler result, the request and the response data.
1. The sampler result just contains the response time, the returncode and return message
2. The request gives a short description of the request that was made, in practice no relevant information is contained here.
3. The response data contains the full details of the sent request, as well the full details of the received answer, this is given in a (self
defined) xml-style. The full description can be found here.
6 of 6 9/3/2013 12:45 AM