use of org.apache.jmeter.testelement.property.LongProperty in project jmeter-plugins by undera.
the class AbstractGraphPanelVisualizer method modifyTestElement.
@Override
public void modifyTestElement(TestElement c) {
super.modifyTestElement(c);
c.setProperty(new LongProperty(INTERVAL_PROPERTY, interval));
c.setProperty(new BooleanProperty(GRAPH_AGGREGATED, isAggregate));
c.setProperty(new StringProperty(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS, graphPanel.getRowSelectorPanel().getIncludeSampleLabels()));
c.setProperty(new StringProperty(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS, graphPanel.getRowSelectorPanel().getExcludeSampleLabels()));
c.setProperty(new StringProperty(CorrectedResultCollector.START_OFFSET, graphPanel.getRowSelectorPanel().getStartOffset()));
c.setProperty(new StringProperty(CorrectedResultCollector.END_OFFSET, graphPanel.getRowSelectorPanel().getEndOffset()));
c.setProperty(new BooleanProperty(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE, graphPanel.getRowSelectorPanel().isSelectedRegExpInc()));
c.setProperty(new BooleanProperty(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE, graphPanel.getRowSelectorPanel().isSelectedRegExpExc()));
}
use of org.apache.jmeter.testelement.property.LongProperty in project jmeter-plugins by undera.
the class AbstractGraphPanelVisualizerTest method testConfigure.
@Test
public void testConfigure() {
System.out.println("configure");
TestElement el = new ResultCollector();
el.setProperty(new LongProperty(AbstractGraphPanelVisualizer.INTERVAL_PROPERTY, 10000));
AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl();
instance.configure(el);
}
use of org.apache.jmeter.testelement.property.LongProperty in project jmeter by apache.
the class LongPropertyConverter method unmarshal.
/**
* {@inheritDoc}
*/
@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
final String name = ConversionHelp.getPropertyName(reader, context);
if (name == null) {
return null;
}
LongProperty prop = new LongProperty(name, Long.parseLong(reader.getValue()));
return prop;
}
use of org.apache.jmeter.testelement.property.LongProperty in project jmeter by apache.
the class LongPropertyConverter method marshal.
/**
* {@inheritDoc}
*/
@Override
public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext arg2) {
LongProperty prop = (LongProperty) obj;
writer.addAttribute(ConversionHelp.ATT_NAME, ConversionHelp.encode(prop.getName()));
writer.setValue(prop.getStringValue());
}
Aggregations