Class LDAPSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.ldap.sampler.LDAPSampler
- All Implemented Interfaces:
Serializable
,Cloneable
,ConfigMergabilityIndicator
,Searchable
,Sampler
,org.apache.jmeter.testelement.TestElement
Ldap Sampler class is main class for the LDAP test. This will control all the
test available in the LDAP Test.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applies
(ConfigTestElement configElement) Does configElement apply to SamplerGets the Arguments attribute of the LdapConfig object.Gets the BaseEntryDN attribute of the LDAPSampler object.getLabel()
Returns a formatted string label describing this samplerGets the password attribute of the LDAP object.getPort()
Gets the Port attribute of the LDAPSampler object.Gets the Rootdn attribute of the LDAPSampler object.Gets the servername attribute of the LDAPSampler object.getTest()
Gets the test attribute of the LDAPSampler object.boolean
Gets the UserDefinedTest attribute of the LDAPSampler object.Gets the username attribute of the LDAP object.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
Sets the Port attribute of the ServerConfig object.void
Sets the Rootdn attribute of the LDAPSampler object.void
setServername
(String servername) Sets the Servername attribute of the ServerConfig object.void
Sets the Test attribute of the LdapConfig object.void
setUserDefinedTest
(boolean value) Sets the UserDefinedTest attribute of the LDAPSampler object.Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Field Details
-
SERVERNAME
- See Also:
-
PORT
- See Also:
-
ROOTDN
- See Also:
-
TEST
- See Also:
-
ADD
- See Also:
-
MODIFY
- See Also:
-
DELETE
- See Also:
-
SEARCHBASE
- See Also:
-
SEARCHFILTER
- See Also:
-
USER_DEFINED
- See Also:
-
ARGUMENTS
- See Also:
-
BASE_ENTRY_DN
- See Also:
-
-
Constructor Details
-
LDAPSampler
public LDAPSampler()
-
-
Method Details
-
getUsername
Gets the username attribute of the LDAP object.- Returns:
- the username
-
getPassword
Gets the password attribute of the LDAP object.- Returns:
- the password
-
setServername
Sets the Servername attribute of the ServerConfig object.- Parameters:
servername
- the new servername value
-
setPort
Sets the Port attribute of the ServerConfig object.- Parameters:
port
- the new Port value
-
getServername
Gets the servername attribute of the LDAPSampler object.- Returns:
- the Servername value
-
getPort
Gets the Port attribute of the LDAPSampler object.- Returns:
- the Port value
-
setRootdn
Sets the Rootdn attribute of the LDAPSampler object.- Parameters:
newRootdn
- the new rootdn value
-
getRootdn
Gets the Rootdn attribute of the LDAPSampler object.- Returns:
- the Rootdn value
-
setTest
Sets the Test attribute of the LdapConfig object.- Parameters:
newTest
- the new test value(Add,Modify,Delete and search)
-
getTest
Gets the test attribute of the LDAPSampler object.- Returns:
- the test value (Add, Modify, Delete and search)
-
setUserDefinedTest
public void setUserDefinedTest(boolean value) Sets the UserDefinedTest attribute of the LDAPSampler object.- Parameters:
value
- the new UserDefinedTest value
-
getUserDefinedTest
public boolean getUserDefinedTest()Gets the UserDefinedTest attribute of the LDAPSampler object.- Returns:
- the test value true or false. If true it will do the UserDefinedTest else our own inbuild test case.
-
setBaseEntryDN
Sets the Base Entry DN attribute of the LDAPSampler object.- Parameters:
newbaseentry
- the new Base entry DN value
-
getBaseEntryDN
Gets the BaseEntryDN attribute of the LDAPSampler object.- Returns:
- the Base entry DN value
-
setArguments
Sets the Arguments attribute of the LdapConfig object. This will collect values from the table for user defined test case.- Parameters:
value
- the arguments
-
getArguments
Gets the Arguments attribute of the LdapConfig object.- Returns:
- the arguments. User defined test case.
-
getLabel
Returns a formatted string label describing this sampler- Returns:
- a formatted string label describing this sampler
-
sample
Description copied from interface:Sampler
Obtains statistics about the given Entry, and packages the information into a SampleResult.- Parameters:
e
- the Entry (TODO seems to be unused)- Returns:
- information about the sample
-
applies
Description copied from class:AbstractSampler
Does configElement apply to Sampler- Specified by:
applies
in interfaceConfigMergabilityIndicator
- Overrides:
applies
in classAbstractSampler
- Parameters:
configElement
-ConfigTestElement
- Returns:
- boolean
- See Also:
-