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
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
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
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 objectgetAttrs()
Gets the attributes of the LDAPSampler objectGets the BaseEntryDN attribute of the LDAPSampler objectGets the size limit attribute of the LDAPSampler objectlong
getLabel()
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 objectint
Gets the servername attribute of the LDAPSampler objectgetTest()
Gets the test attribute of the LDAPSampler objectGets the time limit attribute of the LDAPSampler objectint
Gets the username attribute of the LDAP objectGets the password attribute of the LDAP objectboolean
isDeref()
Gets the deref attribute of the LDAPSampler objectboolean
boolean
isRetobj()
Gets the return objects attribute of the LDAPSampler objectboolean
isSecure()
boolean
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 This will collect values from the table for user defined test casevoid
Sets the attributes of the LdapConfig objectvoid
setBaseEntryDN
(String newbaseentry) Sets the Base Entry DN attribute of the LDAPSampler objectvoid
setConnTimeOut
(String connto) void
setCountlim
(String newClim) Sets the size limit attribute of the LDAPSampler objectvoid
Sets the deref attribute of the LDAPSampler objectvoid
setLDAPArguments
(LDAPArguments value) Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test casevoid
setParseFlag
(String parseFlag) void
Sets the Port attribute of the ServerConfig objectvoid
Sets the return objects attribute of the LDAPSampler objectvoid
Sets the Rootdn attribute of the LDAPSampler objectvoid
Sets the search scope attribute of the LDAPSampler objectvoid
void
setServername
(String servername) Sets the Servername attribute of the ServerConfig objectvoid
Sets the Test attribute of the LdapConfig objectvoid
setTimelim
(String newTlim) Sets the time limit attribute of the LDAPSampler objectvoid
setTrustAll
(String trust) void
Sets the username attribute of the LDAP objectvoid
Sets the password attribute of the LDAP objectvoid
Called once for all threads after the end of a test.void
Called once for all threads after the end of a test.void
Called just before the start of the test from the main engine thread.void
testStarted
(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, 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:
-
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:Sampler
Obtains statistics about the given Entry, and packages the information into a SampleResult. -
testStarted
public void testStarted()Description copied from interface:TestStateListener
Called 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:
testStarted
in interfaceTestStateListener
- See Also:
-
testEnded
public void testEnded()Description copied from interface:TestStateListener
Called 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:
testEnded
in interfaceTestStateListener
- See Also:
-
testStarted
Description copied from interface:TestStateListener
Called 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:
testStarted
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
testEnded
Description copied from interface:TestStateListener
Called 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:
testEnded
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
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:
-