public class JMESPathExtractor extends AbstractScopedTestElement implements Serializable, PostProcessor, TestStateListener
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
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, getSampleList, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, 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, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public void process()
PostProcessor
process
in interface PostProcessor
public List<String> splitJson(com.fasterxml.jackson.databind.JsonNode jsonNode) throws IOException
IOException
public 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()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.run()
public void testStarted(String host)
TestStateListener
Called 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 TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(String host)
TestStateListener
Called 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 TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
Copyright (c) 1998-2021 Apache Software Foundation. All Rights Reserved.