Search in sources :

Example 1 with BooleanProperty

use of org.apache.jmeter.testelement.property.BooleanProperty 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 BooleanProperty

use of org.apache.jmeter.testelement.property.BooleanProperty in project jmeter by apache.

the class BooleanPropertyConverter method marshal.

/**
 * {@inheritDoc}
 */
@Override
public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext arg2) {
    BooleanProperty prop = (BooleanProperty) obj;
    writer.addAttribute(ConversionHelp.ATT_NAME, ConversionHelp.encode(prop.getName()));
    writer.setValue(prop.getStringValue());
}
Also used : BooleanProperty(org.apache.jmeter.testelement.property.BooleanProperty)

Example 3 with BooleanProperty

use of org.apache.jmeter.testelement.property.BooleanProperty in project jmeter by apache.

the class ThreadGroupGui method modifyTestElement.

/**
 * Modifies a given TestElement to mirror the data in the gui components.
 *
 * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
 */
@Override
public void modifyTestElement(TestElement tg) {
    super.configureTestElement(tg);
    if (tg instanceof AbstractThreadGroup) {
        ((AbstractThreadGroup) tg).setSamplerController((LoopController) loopPanel.createTestElement());
    }
    tg.setProperty(AbstractThreadGroup.NUM_THREADS, threadInput.getText());
    tg.setProperty(ThreadGroup.RAMP_TIME, rampInput.getText());
    if (showDelayedStart) {
        tg.setProperty(ThreadGroup.DELAYED_START, delayedStart.isSelected(), false);
    }
    tg.setProperty(new BooleanProperty(ThreadGroup.SCHEDULER, scheduler.isSelected()));
    tg.setProperty(ThreadGroup.DURATION, duration.getText());
    tg.setProperty(ThreadGroup.DELAY, delay.getText());
    tg.setProperty(AbstractThreadGroup.IS_SAME_USER_ON_NEXT_ITERATION, sameUserBox.isSelected());
}
Also used : BooleanProperty(org.apache.jmeter.testelement.property.BooleanProperty) AbstractThreadGroup(org.apache.jmeter.threads.AbstractThreadGroup)

Example 4 with BooleanProperty

use of org.apache.jmeter.testelement.property.BooleanProperty in project jmeter by apache.

the class ProxyControl method setNotifyChildSamplerListenerOfFilteredSamplers.

public void setNotifyChildSamplerListenerOfFilteredSamplers(boolean b) {
    notifyChildSamplerListenersOfFilteredSamples = b;
    setProperty(new BooleanProperty(NOTIFY_CHILD_SAMPLER_LISTENERS_FILTERED, b));
}
Also used : BooleanProperty(org.apache.jmeter.testelement.property.BooleanProperty)

Example 5 with BooleanProperty

use of org.apache.jmeter.testelement.property.BooleanProperty in project jmeter by apache.

the class ProxyControl method setUseKeepAlive.

public void setUseKeepAlive(boolean b) {
    useKeepAlive = b;
    setProperty(new BooleanProperty(USE_KEEPALIVE, b));
}
Also used : BooleanProperty(org.apache.jmeter.testelement.property.BooleanProperty)

Aggregations

BooleanProperty (org.apache.jmeter.testelement.property.BooleanProperty)19 StringProperty (org.apache.jmeter.testelement.property.StringProperty)4 TestElementProperty (org.apache.jmeter.testelement.property.TestElementProperty)2 Arguments (org.apache.jmeter.config.Arguments)1 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)1 HTTPArgument (org.apache.jmeter.protocol.http.util.HTTPArgument)1 JMSSampler (org.apache.jmeter.protocol.jms.sampler.JMSSampler)1 IntegerProperty (org.apache.jmeter.testelement.property.IntegerProperty)1 JMeterProperty (org.apache.jmeter.testelement.property.JMeterProperty)1 LongProperty (org.apache.jmeter.testelement.property.LongProperty)1 NullProperty (org.apache.jmeter.testelement.property.NullProperty)1 AbstractThreadGroup (org.apache.jmeter.threads.AbstractThreadGroup)1