Search in sources :

Example 11 with JSONPostProcessor

use of org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor in project jmeter by apache.

the class JSONPostProcessorGui method createTestElement.

/**
     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
@Override
public TestElement createTestElement() {
    JSONPostProcessor config = new JSONPostProcessor();
    modifyTestElement(config);
    return config;
}
Also used : JSONPostProcessor(org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor)

Example 12 with JSONPostProcessor

use of org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor in project jmeter by apache.

the class JSONPostProcessorGui method configure.

@Override
public void configure(TestElement element) {
    super.configure(element);
    JSONPostProcessor config = (JSONPostProcessor) element;
    showScopeSettings(config, true);
    refNamesField.setText(config.getRefNames());
    jsonPathExpressionsField.setText(config.getJsonPathExpressions());
    matchNumbersField.setText(config.getMatchNumbers());
    defaultValuesField.setText(config.getDefaultValues());
    computeConcatenationField.setSelected(config.getComputeConcatenation());
}
Also used : JSONPostProcessor(org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor)

Aggregations

JSONPostProcessor (org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor)12 JMeterContext (org.apache.jmeter.threads.JMeterContext)8 JMeterVariables (org.apache.jmeter.threads.JMeterVariables)8 Test (org.junit.Test)8 SampleResult (org.apache.jmeter.samplers.SampleResult)3 JSONParser (net.minidev.json.parser.JSONParser)1