Class LDAPExtSampler
- All Implemented Interfaces:
Serializable,Cloneable,ConfigMergabilityIndicator,Searchable,Sampler,org.apache.jmeter.testelement.TestElement,TestStateListener
- 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(ConfigTestElement configElement) Does configElement apply to SamplerGets 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()booleanObtains statistics about the given Entry, and packages the information into a SampleResult.voidsetArguments(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 objectvoidCalled once for all threads after the end of a test.voidCalled once for all threads after the end of a test.voidCalled just before the start of the test from the main engine thread.voidtestStarted(String host) Called just before the start of the test from the main engine thread.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
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
-
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
Description copied from interface:SamplerObtains statistics about the given Entry, and packages the information into a SampleResult. -
testStarted
public void testStarted()Description copied from interface:TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testStartedin interfaceTestStateListener- See Also:
-
testEnded
public void testEnded()Description copied from interface:TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testEndedin interfaceTestStateListener- See Also:
-
testStarted
Description copied from interface:TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testStartedin interfaceTestStateListener- Parameters:
host- name of host- See Also:
-
testEnded
Description copied from interface:TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testEndedin interfaceTestStateListener- Parameters:
host- name of host- See Also:
-
applies
Description copied from class:AbstractSamplerDoes configElement apply to Sampler- Specified by:
appliesin interfaceConfigMergabilityIndicator- Overrides:
appliesin classAbstractSampler- Parameters:
configElement-ConfigTestElement- Returns:
- boolean
- See Also:
-