⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build-ldapext-test-plan.html

📁 测试工具jmeter可用来进行性能测试
💻 HTML
📖 第 1 页 / 共 2 页
字号:


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extcompare.png"><br>
<font size="-1">
Figure 9b.3.3. Compare example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_sbind"><strong>9b.3.4 Adding a Single bind/unbind</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

Select the "Single bind/unbind" button.

</li>


<li>

Enter the FULL distinghuised name from the user you want to use for authentication.
<br>
</br>

eg. cn=john doe,ou=people,dc=siemens,dc=com
When this field is kept empty, an anonymous bind will be established.

</li>


<li>

Enter the password for the user you want to authenticate with, an empty password will also lead to an anonymous bind.

</li>


<li>

Take care: This single bind/unbind is in reality two seperate operations but cannot easily be split!

</li>


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extsbind.png"><br>
<font size="-1">
Figure 9b.3.4. Single bind/unbind example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_addreq"><strong>9b.3.5 Adding an Add Request</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

Select the "Add" button.

</li>


<li>

Enter the distinghuised name for the object to add, relative to the basedn.

</li>


<li>

Add a line in the "add test" table, fill in the attribute and value.
<br>
</br>

When you need the same attribute more than once, just add a new line, add the attribute again, and a different value.
<br>
</br>

All necessary attributes and values must be specified to pass the test, see picture!
<br>
</br>

(sometimes the server adds the attribute "objectClass=top", this might give a problem.

</li>


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extadd.png"><br>
<font size="-1">
Figure 9b.3.5. Add request example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_modreq"><strong>9b.3.6 Adding a Modify Request</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

Select the "Modify test" button.

</li>


<li>

Enter the distinghuised name for the object to modify, relative to the basedn.

</li>


<li>

Add a line in the "modify test" table, with the "add" button.

</li>


<li>

You need to enter the attribute you want to modify, (optional) a value, and the opcode. The meaning of this opcode:

<ol>
<li>
add
<br>
</br>
 this will mean that the attribute value (not optional in this case) willbe added to the attribute.
<br>
</br>

When the attribute is not existing, it will be created and the value added
<br>
</br>

When it is existing, and defined multi-valued, the new value is added.
<br>
</br>

when it is existing, but single valued, it will fail.
</li>


<li>
replace
<br>
</br>

This will overwrite the attribute with the given new value (not optional here)
<br>
</br>

When the attribute is not existing, it will be created and the value added
<br>
</br>

When it is existing, old values are removed, the new value is added.
</li>


<li>
delete
<br>
</br>

When no value is given, all values will be removed
<br>
</br>

When a value is given, only that value will be removed
<br>
</br>

 when the given value is not existing, the test will fail

</li>
</ol>


</li>


<li>

(Optional) Add more modifications in the "modify test" table.
<br>
</br>

All modifications which are specified must succeed, to let the modification test pass. When one modification fails, NO modifications at all will be made and the entry will remain unchanged.

</li>


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extmod.png"><br>
<font size="-1">
Figure 9b.3.6. Modify example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_delreq"><strong>9b.3.7 Adding a Delete Request</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

Select the "Delete" button.

</li>


<li>

enter the name of the entry, relative to the baseDN, in the Delete-Field.
<br>
</br>

that is, if you want to remove "cn=john doe,ou=people,dc=siemens,dc=com", and you set the baseDN to "dc=siemens,dc=com",
you need to enter "cn=john doe,ou=people" in the Delete-field.

</li>


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extdel.png"><br>
<font size="-1">
Figure 9b.3.7. Delete example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_moddn"><strong>9b.3.8 Adding a Rename Request (moddn)</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

Select the "Rename Entry" button.

</li>


<li>

enter the name of the entry, relative to the baseDN, in the "old entry name-Field".
<br>
</br>

that is, if you want to rename "cn=john doe,ou=people,dc=siemens,dc=com", and you set the baseDN to "dc=siemens,dc=com",
you need to enter "cn=john doe,ou=people" in the old entry name-field.

</li>


<li>

enter the new name of the entry, relative to the baseDN, in the "new distinghuised name-Field".
<br>
</br>

whne you only change the RDN, it will simply rename the entry
<br>
</br>

when you also add a differten subtree, eg you change from cn=john doe,ou=people to cn=john doe,ou=users, it will move the entry.
You can also move a complete subtree (If your LDAP server supports this!!!!), eg ou=people,ou=retired, to ou=oldusers,ou=users, this will move the complete subtee, plus all retired people in the subtree to the new place in the tree.

</li>


</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extmoddn.png"><br>
<font size="-1">
Figure 9b.3.8. Rename example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_unbind"><strong>9b.3.9 Adding an unbind Request</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

   
<ol>


<li>

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

</li>
</ol>


</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extthreadunbind.png"><br>
<font size="-1">
Figure 9b.3.9. Unbind example
</font></td></tr></table></p>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="add_ldapext_listener"><strong>9b.4 Adding a Listener to View/Store the Test Results</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>

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)

</p>
<p>


<p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/ldaptest/extviewtree.png"><br>
<font size="-1">
Figure 9b.4. View result Tree Listener
</font></td></tr></table></p>


</p>
<p>

In this listener you have three tabs to view, the sampler result, the request and the response data.

<ol>


<li>

The sampler result just contains the response time, the returncode and return message

</li>


<li>

The request gives a short description of the request that was made, in practice no relevant information
is contained here.

</li>


<li>

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.

<a href="ldapanswer_xml.html">
The full description can be found here.
</a>


</li>


</ol>


</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<br>
<table>
<tr>
<td bgcolor="#525D76">
<div align="right"><a href="index.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Index</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="build-ws-test-plan.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Next</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="build-ldap-test-plan.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Prev</font></a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>
<hr noshade size="1">
</td></tr>
<tr>
<td>
<table width=100%>
<tr>
<td>
<font color="#525D76" size="-1"><em>
Copyright &copy; 1999-2008, Apache Software Foundation
</em></font>
</td>
<td align="right">
<font color="#525D76" size="-1"><em>
Updated: $Date: 2007-08-20 19:07:53 +0100 (Mon, 20 Aug 2007) $
</em></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>




























⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -