Class LDAPExtSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.ldap.sampler.LDAPExtSampler
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.jmeter.engine.util.ConfigMergabilityIndicator,org.apache.jmeter.gui.Searchable,org.apache.jmeter.samplers.Sampler,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.testelement.TestStateListener
public class LDAPExtSampler
extends org.apache.jmeter.samplers.AbstractSampler
implements org.apache.jmeter.testelement.TestStateListener
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplies(org.apache.jmeter.config.ConfigTestElement configElement) org.apache.jmeter.config.ArgumentsGets the Arguments attribute of the LdapConfig objectgetAttrs()Gets the attributes of the LDAPSampler objectGets the BaseEntryDN attribute of the LDAPSampler objectGets the size limit attribute of the LDAPSampler objectlonggetLabel()Returns a formatted string label describing this sampler Example output:Gets the LDAPArguments attribute of the LdapConfig objectgetPort()Gets the Port attribute of the LDAPSampler objectGets the Rootdn attribute of the LDAPSampler objectgetScope()Gets the search scope attribute of the LDAPSampler objectintGets the servername attribute of the LDAPSampler objectgetTest()Gets the test attribute of the LDAPSampler objectGets the time limit attribute of the LDAPSampler objectintGets the username attribute of the LDAP objectGets the password attribute of the LDAP objectbooleanisDeref()Gets the deref attribute of the LDAPSampler objectbooleanbooleanisRetobj()Gets the return objects attribute of the LDAPSampler objectbooleanisSecure()booleanorg.apache.jmeter.samplers.SampleResultsample(org.apache.jmeter.samplers.Entry e) voidsetArguments(org.apache.jmeter.config.Arguments value) Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test casevoidSets the attributes of the LdapConfig objectvoidsetBaseEntryDN(String newbaseentry) Sets the Base Entry DN attribute of the LDAPSampler objectvoidsetConnTimeOut(String connto) voidsetCountlim(String newClim) Sets the size limit attribute of the LDAPSampler objectvoidSets the deref attribute of the LDAPSampler objectvoidsetLDAPArguments(LDAPArguments value) Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test casevoidsetParseFlag(String parseFlag) voidSets the Port attribute of the ServerConfig objectvoidSets the return objects attribute of the LDAPSampler objectvoidSets the Rootdn attribute of the LDAPSampler objectvoidSets the search scope attribute of the LDAPSampler objectvoidvoidsetServername(String servername) Sets the Servername attribute of the ServerConfig objectvoidSets the Test attribute of the LdapConfig objectvoidsetTimelim(String newTlim) Sets the time limit attribute of the LDAPSampler objectvoidsetTrustAll(String trust) voidSets the username attribute of the LDAP objectvoidSets the password attribute of the LDAP objectvoidvoidvoidvoidtestStarted(String host) 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, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
-
SECURE
- See Also:
-
TRUSTALL
- See Also:
-
ROOTDN
- See Also:
-
TEST
- See Also:
-
ADD
- See Also:
-
MODIFY
- See Also:
-
BIND
- See Also:
-
UNBIND
- See Also:
-
DELETE
- See Also:
-
SEARCH
- See Also:
-
SEARCHBASE
- See Also:
-
SEARCHFILTER
- See Also:
-
ARGUMENTS
- See Also:
-
LDAPARGUMENTS
- See Also:
-
BASE_ENTRY_DN
- See Also:
-
SCOPE
- See Also:
-
COUNTLIM
- See Also:
-
TIMELIM
- See Also:
-
ATTRIBS
- See Also:
-
RETOBJ
- See Also:
-
DEREF
- See Also:
-
USERDN
- See Also:
-
USERPW
- See Also:
-
SBIND
- See Also:
-
COMPARE
- See Also:
-
CONNTO
- See Also:
-
COMPAREDN
- See Also:
-
COMPAREFILT
- See Also:
-
PARSEFLAG
- See Also:
-
RENAME
- See Also:
-
MODDDN
- See Also:
-
NEWDN
- See Also:
-
-
Constructor Details
-
LDAPExtSampler
public LDAPExtSampler()
-
-
Method Details
-
setConnTimeOut
-
getConnTimeOut
-
setSecure
-
isSecure
public boolean isSecure() -
setTrustAll
-
isTrustAll
public boolean isTrustAll() -
isParseFlag
public boolean isParseFlag() -
setParseFlag
-
getUserDN
Gets the username attribute of the LDAP object- Returns:
- The username
-
setUserDN
Sets the username attribute of the LDAP object- Parameters:
newUserDN- distinguished name of the user
-
getUserPw
Gets the password attribute of the LDAP object- Returns:
- The password
-
setUserPw
Sets the password attribute of the LDAP object- Parameters:
newUserPw- password of the user
-
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
-
getScope
Gets the search scope attribute of the LDAPSampler object- Returns:
- The scope value
-
getScopeAsInt
public int getScopeAsInt() -
setScope
Sets the search scope attribute of the LDAPSampler object- Parameters:
newScope- The new scope value
-
getCountlim
Gets the size limit attribute of the LDAPSampler object- Returns:
- The size limit
-
getCountlimAsLong
public long getCountlimAsLong() -
setCountlim
Sets the size limit attribute of the LDAPSampler object- Parameters:
newClim- The new size limit value
-
getTimelim
Gets the time limit attribute of the LDAPSampler object- Returns:
- The time limit
-
getTimelimAsInt
public int getTimelimAsInt() -
setTimelim
Sets the time limit attribute of the LDAPSampler object- Parameters:
newTlim- The new time limit value
-
isRetobj
public boolean isRetobj()Gets the return objects attribute of the LDAPSampler object- Returns:
- if the object(s) are to be returned
-
setRetobj
Sets the return objects attribute of the LDAPSampler object- Parameters:
newRobj- whether the objects should be returned
-
isDeref
public boolean isDeref()Gets the deref attribute of the LDAPSampler object- Returns:
- if dereferencing is required
-
setDeref
Sets the deref attribute of the LDAPSampler object- Parameters:
newDref- The new deref 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)
-
setAttrs
Sets the attributes of the LdapConfig object- Parameters:
newAttrs- The new attributes value
-
getAttrs
Gets the attributes of the LDAPSampler object- Returns:
- The attributes
-
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
public void setArguments(org.apache.jmeter.config.Arguments value) 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
public org.apache.jmeter.config.Arguments getArguments()Gets the Arguments attribute of the LdapConfig object- Returns:
- The arguments user defined test case
-
setLDAPArguments
Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test case- Parameters:
value- The arguments
-
getLDAPArguments
Gets the LDAPArguments attribute of the LdapConfig object- Returns:
- The LDAParguments user defined modify test case
-
getLabel
Returns a formatted string label describing this sampler Example output:- Returns:
- a formatted string label describing this sampler
-
sample
public org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry e) - Specified by:
samplein interfaceorg.apache.jmeter.samplers.Sampler
-
testStarted
public void testStarted()- Specified by:
testStartedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testEnded
public void testEnded()- Specified by:
testEndedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testStarted
- Specified by:
testStartedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testEnded
- Specified by:
testEndedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
applies
public boolean applies(org.apache.jmeter.config.ConfigTestElement configElement) - Specified by:
appliesin interfaceorg.apache.jmeter.engine.util.ConfigMergabilityIndicator- Overrides:
appliesin classorg.apache.jmeter.samplers.AbstractSampler- See Also:
-
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
-