use of org.apache.jmeter.testelement.property.JMeterProperty in project jmeter by apache.
the class CookiePanel method populateTable.
private void populateTable(CookieManager manager) {
tableModel.clearData();
for (JMeterProperty jMeterProperty : manager.getCookies()) {
addCookieToTable((Cookie) jMeterProperty.getObjectValue());
}
configureButtonsState();
}
use of org.apache.jmeter.testelement.property.JMeterProperty in project jmeter by apache.
the class LDAPSampler method 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.
*
* @return the BasicAttributes
*/
private BasicAttributes getUserAttributes() {
//$NON-NLS-1$
BasicAttribute basicattribute = new BasicAttribute("objectclass");
//$NON-NLS-1$
basicattribute.add("top");
//$NON-NLS-1$
basicattribute.add("person");
//$NON-NLS-1$
basicattribute.add("organizationalPerson");
//$NON-NLS-1$
basicattribute.add("inetOrgPerson");
BasicAttributes attrs = new BasicAttributes(true);
attrs.put(basicattribute);
BasicAttribute attr;
for (JMeterProperty jMeterProperty : getArguments()) {
Argument item = (Argument) jMeterProperty.getObjectValue();
attr = getBasicAttribute(item.getName(), item.getValue());
attrs.put(attr);
}
return attrs;
}
Aggregations