Search in sources :

Example 1 with LongProperty

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()));
}
Also used : BooleanProperty(org.apache.jmeter.testelement.property.BooleanProperty) LongProperty(org.apache.jmeter.testelement.property.LongProperty) StringProperty(org.apache.jmeter.testelement.property.StringProperty)

Example 2 with LongProperty

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);
}
Also used : LongProperty(org.apache.jmeter.testelement.property.LongProperty) TestElement(org.apache.jmeter.testelement.TestElement) CorrectedResultCollector(kg.apc.jmeter.vizualizers.CorrectedResultCollector) ResultCollector(org.apache.jmeter.reporters.ResultCollector)

Example 3 with LongProperty

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;
}
Also used : LongProperty(org.apache.jmeter.testelement.property.LongProperty)

Example 4 with LongProperty

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());
}
Also used : LongProperty(org.apache.jmeter.testelement.property.LongProperty)

Aggregations

LongProperty (org.apache.jmeter.testelement.property.LongProperty)4 CorrectedResultCollector (kg.apc.jmeter.vizualizers.CorrectedResultCollector)1 ResultCollector (org.apache.jmeter.reporters.ResultCollector)1 TestElement (org.apache.jmeter.testelement.TestElement)1 BooleanProperty (org.apache.jmeter.testelement.property.BooleanProperty)1 StringProperty (org.apache.jmeter.testelement.property.StringProperty)1