|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.testelement.AbstractTestElement | +--org.apache.jmeter.samplers.AbstractSampler | +--org.apache.jmeter.protocol.ldap.sampler.LDAPSampler
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 |
BASE_ENTRY_DN
|
static int |
counter
|
static String |
DELETE
|
static String |
MODIFY
|
static String |
PORT
|
static String |
ROOTDN
|
static String |
SEARCHBASE
|
static String |
SEARCHFILTER
|
static String |
SERVERNAME
|
static String |
TEST
|
static String |
USER_DEFINED
|
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
Fields inherited from interface org.apache.jmeter.samplers.Sampler |
HEADER |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
LDAPSampler()
! |
Method Summary | |
void |
addCustomTestElement(TestElement element)
|
long |
addTest(LdapClient ldap)
This will do the add test for the User defined TestCase as well as inbuilt test case |
long |
deleteTest(LdapClient ldap)
This will do the delete test for the User defined TestCase as well as inbuilt test case |
Arguments |
getArguments()
Gets the Arguments attribute of the LdapConfig object |
String |
getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object |
BasicAttribute |
getBasicAttribute(String name,
String value)
This will create the Basic Attribute for the give name value pair |
BasicAttributes |
getBasicAttributes()
This will create the Basic Attributes for the In build TestCase for Add Test |
String |
getLabel()
Returns a formatted string label describing this sampler Example output: |
ModificationItem[] |
getModificationItem()
This will create the Basic Attributes for the Inbuilt TestCase for Modify test |
String |
getPassword()
Gets the password attribute of the LDAP object |
String |
getPort()
Gets the Port attribute of the LDAPSampler object |
String |
getRootdn()
Gets the Rootdn attribute of the LDAPSampler object |
String |
getServername()
Gets the servername attribute of the LDAPSampler object |
String |
getTest()
Gets the test attribute of the LDAPSampler object |
BasicAttributes |
getUserAttributes()
Collect all the value from the table (Arguments), using this create the basicAttributes This will create the Basic Attributes for the User defined TestCase for Add Test |
boolean |
getUserDefinedTest()
Gets the UserDefinedTest attribute of the LDAPSampler object |
ModificationItem[] |
getUserModAttributes()
Collect all the value from the table (Arguments), using this create the basicAttributes This will create the Basic Attributes for the User defined TestCase for Modify test |
String |
getUsername()
Gets the username attribute of the LDAP object |
long |
modifyTest(LdapClient ldap)
This will do the search test for the User defined TestCase as well as inbuilt test case |
SampleResult |
sample(Entry e)
! |
long |
searchTest(LdapClient ldap)
This will do the search test for the User defined TestCase as well as inbuilt test case |
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 |
setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object |
void |
setPort(String port)
Sets the Port attribute of the ServerConfig object |
void |
setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object |
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 |
setUserDefinedTest(boolean value)
Sets the UserDefinedTest attribute of the LDAPSampler object |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, traverse |
Field Detail |
public static final String SERVERNAME
public static final String PORT
public static final String ROOTDN
public static final String TEST
public static final String ADD
public static final String MODIFY
public static final String DELETE
public static final String SEARCHBASE
public static final String SEARCHFILTER
public static final String USER_DEFINED
public static final String ARGUMENTS
public static final String BASE_ENTRY_DN
public static int counter
Constructor Detail |
public LDAPSampler()
Method Detail |
public void addCustomTestElement(TestElement element)
public String getUsername()
public String getPassword()
public void setServername(String servername)
servername
- The new servername valuepublic void setPort(String port)
port
- The new Port valuepublic String getServername()
public String getPort()
public void setRootdn(String newRootdn)
public String getRootdn()
public void setTest(String newTest)
public String getTest()
public void setUserDefinedTest(boolean value)
value
- The new UserDefinedTest valuepublic boolean getUserDefinedTest()
public void setBaseEntryDN(String newbaseentry)
public String getBaseEntryDN()
public void setArguments(Arguments value)
value
- The argumentspublic Arguments getArguments()
public BasicAttributes getUserAttributes()
public ModificationItem[] getUserModAttributes()
public ModificationItem[] getModificationItem()
public BasicAttributes getBasicAttributes()
public BasicAttribute getBasicAttribute(String name, String value)
public String getLabel()
public long addTest(LdapClient ldap) throws NoPermissionException, NamingException
NoPermissionException
NamingException
public long deleteTest(LdapClient ldap) throws NoPermissionException, NamingException
NoPermissionException
NamingException
public long searchTest(LdapClient ldap) throws NoPermissionException, NamingException
NoPermissionException
NamingException
public long modifyTest(LdapClient ldap) throws NoPermissionException, NamingException
NoPermissionException
NamingException
public SampleResult sample(Entry e)
e
- !ToDo (Parameter description)
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |