org.apache.jmeter.protocol.ldap.sampler

Class LDAPExtSampler

Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement, TestListener

public class LDAPExtSampler
extends AbstractSampler
implements TestListener

Ldap Sampler class is main class for the LDAP test. This will control all the test available in the LDAP Test.

Field Summary

static String
ADD
static String
ARGUMENTS
static String
ATTRIBS
static String
BASE_ENTRY_DN
static String
BIND
static String
COMPARE
static String
COMPAREDN
static String
COMPAREFILT
static String
CONNTO
static String
COUNTLIM
static String
DELETE
static String
DEREF
static String
LDAPARGUMENTS
static String
MODDDN
static String
MODIFY
static String
NEWDN
static String
PARSEFLAG
static String
PORT
static String
RENAME
static String
RETOBJ
static String
ROOTDN
static String
SBIND
static String
SCOPE
static String
SEARCH
static String
SEARCHBASE
static String
SEARCHFILTER
static String
SECURE
static String
SERVERNAME
static String
TEST
static String
TIMELIM
static String
UNBIND
static String
USERDN
static String
USERPW

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

LDAPExtSampler()
!

Method Summary

Arguments
getArguments()
Gets the Arguments attribute of the LdapConfig object
String
getAttrs()
Gets the attributes of the LDAPSampler object
String
getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object
String
getConnTimeOut()
String
getCountlim()
Gets the size limit attribute of the LDAPSampler object
long
getCountlimAsLong()
LDAPArguments
getLDAPArguments()
Gets the LDAPArguments attribute of the LdapConfig object
String
getLabel()
Returns a formatted string label describing this sampler Example output:
String
getPort()
Gets the Port attribute of the LDAPSampler object
String
getRootdn()
Gets the Rootdn attribute of the LDAPSampler object
String
getScope()
Gets the search scope attribute of the LDAPSampler object
int
getScopeAsInt()
String
getServername()
Gets the servername attribute of the LDAPSampler object
String
getTest()
Gets the test attribute of the LDAPSampler object
String
getTimelim()
Gets the time limit attribute of the LDAPSampler object
int
getTimelimAsInt()
String
getUserDN()
Gets the username attribute of the LDAP object
String
getUserPw()
Gets the password attribute of the LDAP object
boolean
isDeref()
Gets the deref attribute of the LDAPSampler object
boolean
isParseFlag()
boolean
isRetobj()
Gets the return objects attribute of the LDAPSampler object
boolean
isSecure()
SampleResult
sample(Entry e)
!
void
setArguments(Arguments value)
Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test case
void
setAttrs(String newAttrs)
Sets the attributes of the LdapConfig object
void
setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object
void
setConnTimeOut(String connto)
void
setCountlim(String newClim)
Sets the size limit attribute of the LDAPSampler object
void
setDeref(String newDref)
Sets the deref attribute of the LDAPSampler object
void
setLDAPArguments(LDAPArguments value)
Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test case
void
setParseFlag(String parseFlag)
void
setPort(String port)
Sets the Port attribute of the ServerConfig object
void
setRetobj(String newRobj)
Sets the return objects attribute of the LDAPSampler object
void
setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object
void
setScope(String newScope)
Sets the search scope attribute of the LDAPSampler object
void
setSecure(String sec)
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
setTimelim(String newTlim)
Sets the time limit attribute of the LDAPSampler object
void
setUserDN(String newUserDN)
Sets the username attribute of the LDAP object
void
setUserPw(String newUserPw)
Sets the password attribute of the LDAP object
void
testEnded()
void
testEnded(String host)
void
testIterationStart(LoopIterationEvent event)
void
testStarted()
void
testStarted(String host)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

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

Field Details

ADD

public static final String ADD

ARGUMENTS

public static final String ARGUMENTS

ATTRIBS

public static final String ATTRIBS

BASE_ENTRY_DN

public static final String BASE_ENTRY_DN

BIND

public static final String BIND

COMPARE

public static final String COMPARE

COMPAREDN

public static final String COMPAREDN

COMPAREFILT

public static final String COMPAREFILT

CONNTO

public static final String CONNTO

COUNTLIM

public static final String COUNTLIM

DELETE

public static final String DELETE

DEREF

public static final String DEREF

LDAPARGUMENTS

public static final String LDAPARGUMENTS

MODDDN

public static final String MODDDN

MODIFY

public static final String MODIFY

NEWDN

public static final String NEWDN

PARSEFLAG

public static final String PARSEFLAG

PORT

public static final String PORT

RENAME

public static final String RENAME

RETOBJ

public static final String RETOBJ

ROOTDN

public static final String ROOTDN

SBIND

public static final String SBIND

SCOPE

public static final String SCOPE

SEARCH

public static final String SEARCH

SEARCHBASE

public static final String SEARCHBASE

SEARCHFILTER

public static final String SEARCHFILTER

SECURE

public static final String SECURE

SERVERNAME

public static final String SERVERNAME

TEST

public static final String TEST

TIMELIM

public static final String TIMELIM

UNBIND

public static final String UNBIND

USERDN

public static final String USERDN

USERPW

public static final String USERPW

Constructor Details

LDAPExtSampler

public LDAPExtSampler()
!ToDo (Constructor description)

Method Details

getArguments

public Arguments getArguments()
Gets the Arguments attribute of the LdapConfig object
Returns:
The arguments user defined test case

getAttrs

public String getAttrs()
Gets the attributes of the LDAPSampler object
Returns:
The attributes

getBaseEntryDN

public String getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object
Returns:
The Base entry DN value

getConnTimeOut

public String getConnTimeOut()

getCountlim

public String getCountlim()
Gets the size limit attribute of the LDAPSampler object
Returns:
The size limit

getCountlimAsLong

public long getCountlimAsLong()

getLDAPArguments

public LDAPArguments getLDAPArguments()
Gets the LDAPArguments attribute of the LdapConfig object
Returns:
The LDAParguments user defined modify test case

getLabel

public String getLabel()
Returns a formatted string label describing this sampler Example output:
Returns:
a formatted string label describing this sampler

getPort

public String getPort()
Gets the Port attribute of the LDAPSampler object
Returns:
The Port value

getRootdn

public String getRootdn()
Gets the Rootdn attribute of the LDAPSampler object
Returns:
The Rootdn value

getScope

public String getScope()
Gets the search scope attribute of the LDAPSampler object
Returns:
The scope value

getScopeAsInt

public int getScopeAsInt()

getServername

public String getServername()
Gets the servername attribute of the LDAPSampler object
Returns:
The Servername value

getTest

public String getTest()
Gets the test attribute of the LDAPSampler object
Returns:
The test value (Add,Modify,Delete and search)

getTimelim

public String getTimelim()
Gets the time limit attribute of the LDAPSampler object
Returns:
The time limit

getTimelimAsInt

public int getTimelimAsInt()

getUserDN

public String getUserDN()
Gets the username attribute of the LDAP object
Returns:
The username

getUserPw

public String getUserPw()
Gets the password attribute of the LDAP object
Returns:
The password

isDeref

public boolean isDeref()
Gets the deref attribute of the LDAPSampler object
Returns:
if dereferencing is required

isParseFlag

public boolean isParseFlag()

isRetobj

public boolean isRetobj()
Gets the return objects attribute of the LDAPSampler object
Returns:
if the object(s) are to be returned

isSecure

public boolean isSecure()

sample

public SampleResult sample(Entry e)
!ToDo (Method description)
Specified by:
sample in interface Sampler
Parameters:
e - !ToDo (Parameter description)
Returns:
!ToDo (Return description)

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
Parameters:
value - The arguments

setAttrs

public void setAttrs(String newAttrs)
Sets the attributes of the LdapConfig object
Parameters:
newAttrs - The new attributes value

setBaseEntryDN

public void setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object
Parameters:
newbaseentry - The new Base entry DN value

setConnTimeOut

public void setConnTimeOut(String connto)

setCountlim

public void setCountlim(String newClim)
Sets the size limit attribute of the LDAPSampler object
Parameters:
newClim - The new size limit value

setDeref

public void setDeref(String newDref)
Sets the deref attribute of the LDAPSampler object
Parameters:
newDref - The new deref value

setLDAPArguments

public void setLDAPArguments(LDAPArguments 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

setParseFlag

public void setParseFlag(String parseFlag)

setPort

public void setPort(String port)
Sets the Port attribute of the ServerConfig object
Parameters:
port - The new Port value

setRetobj

public void setRetobj(String newRobj)
Sets the return objects attribute of the LDAPSampler object

setRootdn

public void setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object
Parameters:
newRootdn - The new rootdn value

setScope

public void setScope(String newScope)
Sets the search scope attribute of the LDAPSampler object
Parameters:
newScope - The new scope value

setSecure

public void setSecure(String sec)

setServername

public void setServername(String servername)
Sets the Servername attribute of the ServerConfig object
Parameters:
servername - The new servername value

setTest

public void setTest(String newTest)
Sets the Test attribute of the LdapConfig object
Parameters:
newTest - The new test value(Add,Modify,Delete and search)

setTimelim

public void setTimelim(String newTlim)
Sets the time limit attribute of the LDAPSampler object
Parameters:
newTlim - The new time limit value

setUserDN

public void setUserDN(String newUserDN)
Sets the username attribute of the LDAP object

setUserPw

public void setUserPw(String newUserPw)
Sets the password attribute of the LDAP object

testEnded

public void testEnded()
Specified by:
testEnded in interface TestListener

testEnded

public void testEnded(String host)
Specified by:
testEnded in interface TestListener

testIterationStart

public void testIterationStart(LoopIterationEvent event)
Specified by:
testIterationStart in interface TestListener

testStarted

public void testStarted()
Specified by:
testStarted in interface TestListener

testStarted

public void testStarted(String host)
Specified by:
testStarted in interface TestListener

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.