use of org.apache.jmeter.testelement.property.CollectionProperty in project jmeter-plugins by undera.
the class CompositeGraphGui method setConfig.
private void setConfig(CollectionProperty properties) {
PropertyIterator iter = properties.iterator();
CollectionProperty testplans = (CollectionProperty) iter.next();
CollectionProperty rows = (CollectionProperty) iter.next();
if (rows.size() > 0) {
PropertyIterator iterTestplans = testplans.iterator();
PropertyIterator iterRows = rows.iterator();
while (iterTestplans.hasNext() && iterRows.hasNext()) {
String testplan = iterTestplans.next().getStringValue();
String row = iterRows.next().getStringValue();
compositeRowsSelectorPanel.addItemsToComposite(testplan, row);
}
}
}
use of org.apache.jmeter.testelement.property.CollectionProperty in project jmeter-plugins by undera.
the class JMeterPluginsUtilsTest method testTableModelRowsToCollectionPropertyEval.
@Test
public void testTableModelRowsToCollectionPropertyEval() {
System.out.println("tableModelRowsToCollectionPropertyEval");
PowerTableModel model = getTestModel();
String propname = "prop";
CollectionProperty result = JMeterPluginsUtils.tableModelRowsToCollectionPropertyEval(model, propname);
assertEquals(2, result.size());
assertEquals("[[1, 2], [3, 4]]", result.toString());
}
use of org.apache.jmeter.testelement.property.CollectionProperty in project jmeter-plugins by undera.
the class MonitoringResultsCollectorTest method testSetData.
/**
* Test of setData method, of class MonitoringResultsCollector.
*/
@Test
public void testSetData() {
System.out.println("setData");
CollectionProperty rows = new CollectionProperty();
MonitoringResultsCollector instance = new MonitoringResultsCollector();
instance.setData(rows);
JMeterProperty result = instance.getProperty(MonitoringResultsCollector.DATA_PROPERTY);
assertNotNull(result);
}
use of org.apache.jmeter.testelement.property.CollectionProperty in project jmeter by apache.
the class ResponseAssertion method clear.
@Override
public void clear() {
super.clear();
setProperty(new CollectionProperty(TEST_STRINGS, new ArrayList<String>()));
}
use of org.apache.jmeter.testelement.property.CollectionProperty in project jmeter by apache.
the class ProxyControl method filterUrl.
// Package protected to allow test case access
boolean filterUrl(HTTPSamplerBase sampler) {
String domain = sampler.getDomain();
if (domain == null || domain.length() == 0) {
return false;
}
String url = generateMatchUrl(sampler);
CollectionProperty includePatterns = getIncludePatterns();
if (includePatterns.size() > 0 && !matchesPatterns(url, includePatterns)) {
return false;
}
CollectionProperty excludePatterns = getExcludePatterns();
if (excludePatterns.size() > 0 && matchesPatterns(url, excludePatterns)) {
return false;
}
return true;
}
Aggregations