Search in sources :

Example 46 with StringProperty

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

the class SimpleConfigGui method modifyTestElement.

/**
     * Get all of the values from the GUI component and set them in the
     * TestElement.
     *
     * @param el
     *            the TestElement to modify
     */
@Override
public void modifyTestElement(TestElement el) {
    GuiUtils.stopTableEditing(table);
    Data model = tableModel.getData();
    model.reset();
    while (model.next()) {
        el.setProperty(new StringProperty((String) model.getColumnValue(COLUMN_NAMES_0), (String) model.getColumnValue(COLUMN_NAMES_1)));
    }
    super.configureTestElement(el);
}
Also used : StringProperty(org.apache.jmeter.testelement.property.StringProperty) Data(org.apache.jorphan.collections.Data)

Example 47 with StringProperty

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

the class AbstractThreadGroupGui method configureTestElement.

@Override
protected void configureTestElement(TestElement tg) {
    super.configureTestElement(tg);
    tg.setProperty(new StringProperty(AbstractThreadGroup.ON_SAMPLE_ERROR, onSampleError()));
}
Also used : StringProperty(org.apache.jmeter.testelement.property.StringProperty)

Aggregations

StringProperty (org.apache.jmeter.testelement.property.StringProperty)47 Test (org.junit.Test)26 JMeterProperty (org.apache.jmeter.testelement.property.JMeterProperty)23 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)9 TestElement (org.apache.jmeter.testelement.TestElement)7 TestPlan (org.apache.jmeter.testelement.TestPlan)4 TestElementProperty (org.apache.jmeter.testelement.property.TestElementProperty)3 BeanInfo (java.beans.BeanInfo)2 IntrospectionException (java.beans.IntrospectionException)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 ResourceBundle (java.util.ResourceBundle)2 CompoundVariable (org.apache.jmeter.engine.util.CompoundVariable)2 ReplaceStringWithFunctions (org.apache.jmeter.engine.util.ReplaceStringWithFunctions)2 TestSampler (org.apache.jmeter.junit.stubs.TestSampler)2 BooleanProperty (org.apache.jmeter.testelement.property.BooleanProperty)2 CollectionProperty (org.apache.jmeter.testelement.property.CollectionProperty)2 NullProperty (org.apache.jmeter.testelement.property.NullProperty)2 JMeterContext (org.apache.jmeter.threads.JMeterContext)2