|
JMeter example source code file (build-ldap-test-plan.xml)
The JMeter build-ldap-test-plan.xml source code<?xml version="1.0"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE document [ <!ENTITY sect-num '9a'> ]> <document prev="build-ftp-test-plan.html" next="build-ldapext-test-plan.html" date="$Date: 2007-08-20 19:07:53 +0100 (Mon, 20 Aug 2007) $"> <properties> <title>User's Manual: Building an LDAP Test Plan </properties> <body> <section name="§-num;. Building an LDAP Test Plan" anchor="building"> <p>In this section, you will learn how to create a basic Test Plan to test an LDAP server. 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: <a href="test_plan.html#thread_group">Thread Group, <complink name="LDAP Request"/>, <complink name="LDAP Request Defaults"/>, and <complink name="View Results in Table"/> .</p> <p>This example assumes that the LDAP Server is installed in your Local machine. </section> <section name="§-num;.1 Adding Users" anchor="adding_users"> <p>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 users you want to simulate, how often the users should send requests, and the how many requests they should send.</p> <p>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 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. <figure image="ldaptest/threadgroup.png"> Figure §-num;.1. Thread Group with Default Values</figure> </p> </section> <section name="§-num;.2 Adding Login Config Element" anchor="add_login"> <p>Begin by selecting the Siptech Users element. Click your right mouse button to get the Add menu, and then select Add --> Config Element --> Login Config Element. Then, select this new element to view its Control Panel.</p> <p>Like most JMeter elements, the Login Config Element Control Panel has a name field that you can modify. In this example, leave this field with the default value.</p> <figure image="ldaptest/login-config-element.png"> Figure §-num;.2 Login Config Element for our Test Plan</figure> <note> Other JMeter examples (source code examples)Here is a short list of links related to this JMeter build-ldap-test-plan.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.