public class JMESPathExtractor extends AbstractScopedTestElement implements Serializable, PostProcessor, TestStateListener
| Constructor and Description |
|---|
JMESPathExtractor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getJmesPathExpression() |
String |
getMatchNumber() |
String |
getRefName() |
void |
process()
Provides the PostProcessor with a SampleResult object from which to
extract values for use in future Queries.
|
void |
setDefaultValue(String defaultValue) |
void |
setJmesPathExpression(String jsonPath) |
void |
setMatchNumber(String matchNumber) |
void |
setRefName(String refName) |
List<String> |
splitJson(com.fasterxml.jackson.databind.JsonNode jsonNode) |
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
fetchScope, getProps, getSampleList, getSchema, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariableaddPropertiesValues, 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, traversePropertypublic void process()
PostProcessorprocess in interface PostProcessorpublic List<String> splitJson(com.fasterxml.jackson.databind.JsonNode jsonNode) throws IOException
IOExceptionpublic String getJmesPathExpression()
public void setJmesPathExpression(String jsonPath)
public String getRefName()
public void setRefName(String refName)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public void setMatchNumber(String matchNumber)
public String getMatchNumber()
public void testStarted()
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerStandardJMeterEngine.run()public void testStarted(String host)
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerhost - name of hostStandardJMeterEngine.run()public void testEnded()
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerStandardJMeterEngine.stopTest()public void testEnded(String host)
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerhost - name of hostStandardJMeterEngine.stopTest()Copyright © 1998-2023 Apache Software Foundation. All Rights Reserved.