public class JSONPathAssertion extends AbstractTestElement implements Serializable, Assertion, ThreadListener
Modifier and Type | Field and Description |
---|---|
static String |
EXPECT_NULL |
static String |
EXPECTEDVALUE |
static String |
INVERT |
static String |
ISREGEX |
static String |
JSONPATH |
static String |
JSONVALIDATION |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
JSONPathAssertion() |
Modifier and Type | Method and Description |
---|---|
String |
getExpectedValue() |
String |
getJsonPath() |
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(Object subj) |
void |
setExpectedValue(String expectedValue) |
void |
setExpectNull(boolean val) |
void |
setInvert(boolean invert) |
void |
setIsRegex(boolean flag) |
void |
setJsonPath(String jsonPath) |
void |
setJsonValidationBool(boolean jsonValidation) |
void |
threadFinished()
Called for each thread after all samples have been processed.
|
void |
threadStarted()
Called for each thread before starting sampling.
|
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 static final String JSONPATH
public static final String EXPECTEDVALUE
public static final String JSONVALIDATION
public static final String EXPECT_NULL
public static final String INVERT
public static final String ISREGEX
public String getJsonPath()
public void setJsonPath(String jsonPath)
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()
public AssertionResult getResult(SampleResult samplerResult)
Assertion
public void threadStarted()
ThreadListener
threadStarted
in interface ThreadListener
public void threadFinished()
ThreadListener
threadFinished
in interface ThreadListener
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.