Class JSONPathAssertion

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable , org.apache.jmeter.assertions.Assertion , org.apache.jmeter.gui.Searchable , org.apache.jmeter.testelement.TestElement , org.apache.jmeter.testelement.ThreadListener

    
    public class JSONPathAssertion
    extends AbstractTestElement implements Serializable, Assertion, ThreadListener
                        

    This is main class for JSONPath Assertion which verifies assertion on previous sample result using JSON path expression

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getJsonPath()
      void setJsonPath(String jsonPath)
      String getExpectedValue()
      void setExpectedValue(String expectedValue)
      void setJsonValidationBool(boolean jsonValidation)
      void setExpectNull(boolean val)
      boolean isExpectNull()
      boolean isJsonValidationBool()
      void setInvert(boolean invert)
      boolean isInvert()
      void setIsRegex(boolean flag)
      boolean isUseRegex()
      AssertionResult getResult(SampleResult samplerResult)
      static String objectToString(Object subj)
      void threadStarted()
      void threadFinished()
      • Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

        addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
      • Methods inherited from class org.apache.jmeter.testelement.TestElement

        get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait