org.apache.jmeter.protocol.ldap.sampler
Class LDAPSampler
- Cloneable, Sampler, Serializable, TestElement
Ldap Sampler class is main class for the LDAP test. This will control all the
test available in the LDAP Test.
Arguments | getArguments() - Gets the Arguments attribute of the LdapConfig object.
|
String | getBaseEntryDN() - Gets the BaseEntryDN attribute of the LDAPSampler object.
|
String | getLabel() - Returns a formatted string label describing this sampler
|
String | getPassword() - Gets the password attribute of the LDAP object.
|
String | getPort() - Gets the Port attribute of the LDAPSampler object.
|
String | getRootdn() - Gets the Rootdn attribute of the LDAPSampler object.
|
String | getServername() - Gets the servername attribute of the LDAPSampler object.
|
String | getTest() - Gets the test attribute of the LDAPSampler object.
|
boolean | getUserDefinedTest() - Gets the UserDefinedTest attribute of the LDAPSampler object.
|
String | getUsername() - Gets the username attribute of the LDAP object.
|
SampleResult | sample(Entry e) - Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
void | setArguments(Arguments value) - Sets the Arguments attribute of the LdapConfig object.
|
void | setBaseEntryDN(String newbaseentry) - Sets the Base Entry DN attribute of the LDAPSampler object.
|
void | setPort(String port) - Sets the Port attribute of the ServerConfig object.
|
void | setRootdn(String newRootdn) - Sets the Rootdn attribute of the LDAPSampler object.
|
void | setServername(String servername) - Sets the Servername attribute of the ServerConfig object.
|
void | setTest(String newTest) - Sets the Test attribute of the LdapConfig object.
|
void | setUserDefinedTest(boolean value) - Sets the UserDefinedTest attribute of the LDAPSampler object.
|
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
ADD
public static final String ADD
ARGUMENTS
public static final String ARGUMENTS
BASE_ENTRY_DN
public static final String BASE_ENTRY_DN
DELETE
public static final String DELETE
MODIFY
public static final String MODIFY
PORT
public static final String PORT
ROOTDN
public static final String ROOTDN
SEARCHBASE
public static final String SEARCHBASE
SEARCHFILTER
public static final String SEARCHFILTER
SERVERNAME
public static final String SERVERNAME
TEST
public static final String TEST
USER_DEFINED
public static final String USER_DEFINED
LDAPSampler
public LDAPSampler()
getArguments
public Arguments getArguments()
Gets the Arguments attribute of the LdapConfig object.
- the arguments. User defined test case.
getBaseEntryDN
public String getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object.
getLabel
public String getLabel()
Returns a formatted string label describing this sampler
- a formatted string label describing this sampler
getPassword
public String getPassword()
Gets the password attribute of the LDAP object.
getPort
public String getPort()
Gets the Port attribute of the LDAPSampler object.
getRootdn
public String getRootdn()
Gets the Rootdn attribute of the LDAPSampler object.
getServername
public String getServername()
Gets the servername attribute of the LDAPSampler object.
getTest
public String getTest()
Gets the test attribute of the LDAPSampler object.
- the test value (Add, Modify, Delete and search)
getUserDefinedTest
public boolean getUserDefinedTest()
Gets the UserDefinedTest attribute of the LDAPSampler object.
- the test value true or false. If true it will do the
UserDefinedTest else our own inbuild test case.
getUsername
public String getUsername()
Gets the username attribute of the LDAP object.
sample
public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
- sample in interface Sampler
setArguments
public void setArguments(Arguments value)
Sets the Arguments attribute of the LdapConfig object. This will collect
values from the table for user defined test case.
setBaseEntryDN
public void setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object.
newbaseentry
- the new Base entry DN value
setPort
public void setPort(String port)
Sets the Port attribute of the ServerConfig object.
port
- the new Port value
setRootdn
public void setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object.
newRootdn
- the new rootdn value
setServername
public void setServername(String servername)
Sets the Servername attribute of the ServerConfig object.
servername
- the new servername value
setTest
public void setTest(String newTest)
Sets the Test attribute of the LdapConfig object.
newTest
- the new test value(Add,Modify,Delete and search)
setUserDefinedTest
public void setUserDefinedTest(boolean value)
Sets the UserDefinedTest attribute of the LDAPSampler object.
value
- the new UserDefinedTest value
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.