public class JMESPathAssertion extends AbstractTestElement implements Serializable, Assertion, TestStateListener
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
JMESPathAssertion() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedValue() |
String |
getJmesPath() |
AssertionResult |
getResult(SampleResult samplerResult)
Returns the AssertionResult object encapsulating information about the
success or failure of the assertion.
|
boolean |
isExpectNull() |
boolean |
isInvert() |
boolean |
isJsonValidationBool() |
boolean |
isUseRegex() |
static String |
objectToString(com.fasterxml.jackson.databind.ObjectMapper mapper,
com.fasterxml.jackson.databind.JsonNode element) |
void |
setExpectedValue(String expectedValue) |
void |
setExpectNull(boolean val) |
void |
setInvert(boolean invert) |
void |
setIsRegex(boolean flag) |
void |
setJmesPath(String jmesPath) |
void |
setJsonValidationBool(boolean jsonValidation) |
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.
|
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, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitremovedpublic AssertionResult getResult(SampleResult samplerResult)
Assertionpublic static String objectToString(com.fasterxml.jackson.databind.ObjectMapper mapper, com.fasterxml.jackson.databind.JsonNode element) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic 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()public String getJmesPath()
public void setJmesPath(String jmesPath)
public String getExpectedValue()
public void setExpectedValue(String expectedValue)
public void setJsonValidationBool(boolean jsonValidation)
public void setExpectNull(boolean val)
public boolean isExpectNull()
public boolean isJsonValidationBool()
public void setInvert(boolean invert)
public boolean isInvert()
public void setIsRegex(boolean flag)
public boolean isUseRegex()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.