Class JSONPostProcessor
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testelement.AbstractScopedTestElement
org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor
- All Implemented Interfaces:
Serializable,Cloneable,Searchable,PostProcessor,org.apache.jmeter.testelement.TestElement,ThreadListener
public class JSONPostProcessor
extends AbstractScopedTestElement
implements Serializable, PostProcessor, ThreadListener
JSON-PATH based extractor
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion -
Field Summary
FieldsFields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanint[]getMatchNumbersAsInt(int arraySize) voidprocess()Provides the PostProcessor with a SampleResult object from which to extract values for use in future Queries.voidsetComputeConcatenation(boolean computeConcatenation) voidsetDefaultValues(String defaultValue) voidsetJsonPathExpressions(String jsonPath) voidsetMatchNumbers(String matchNumber) voidsetRefNames(String refName) voidCalled for each thread after all samples have been processed.voidCalled for each thread before starting sampling.Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement
fetchScope, getProps, getSampleList, getSchema, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariableMethods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Field Details
-
COMPUTE_CONCATENATION_DEFAULT_VALUE
public static final boolean COMPUTE_CONCATENATION_DEFAULT_VALUE- See Also:
-
-
Constructor Details
-
JSONPostProcessor
public JSONPostProcessor()
-
-
Method Details
-
process
public void process()Description copied from interface:PostProcessorProvides the PostProcessor with a SampleResult object from which to extract values for use in future Queries.- Specified by:
processin interfacePostProcessor
-
getJsonPathExpressions
-
setJsonPathExpressions
-
getRefNames
-
setRefNames
-
getDefaultValues
-
setDefaultValues
-
getComputeConcatenation
public boolean getComputeConcatenation() -
setComputeConcatenation
public void setComputeConcatenation(boolean computeConcatenation) -
threadStarted
public void threadStarted()Description copied from interface:ThreadListenerCalled for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet. See org.apache.jmeter.threads.JMeterThread#threadStarted()- Specified by:
threadStartedin interfaceThreadListener
-
threadFinished
public void threadFinished()Description copied from interface:ThreadListenerCalled for each thread after all samples have been processed. See org.apache.jmeter.threads.JMeterThread#threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)- Specified by:
threadFinishedin interfaceThreadListener
-
setMatchNumbers
-
getMatchNumbers
-
getMatchNumbersAsInt
public int[] getMatchNumbersAsInt(int arraySize)
-