Class JSONPostProcessor

All Implemented Interfaces:
Serializable, Cloneable, Searchable, PostProcessor, org.apache.jmeter.testelement.TestElement, ThreadListener

public class JSONPostProcessor extends AbstractScopedTestElement implements Serializable, PostProcessor, ThreadListener
JSON-PATH based extractor
Since:
3.0
See Also:
  • Field Details

    • COMPUTE_CONCATENATION_DEFAULT_VALUE

      public static final boolean COMPUTE_CONCATENATION_DEFAULT_VALUE
      See Also:
  • Constructor Details

    • JSONPostProcessor

      public JSONPostProcessor()
  • Method Details

    • process

      public void process()
      Description copied from interface: PostProcessor
      Provides the PostProcessor with a SampleResult object from which to extract values for use in future Queries.
      Specified by:
      process in interface PostProcessor
    • getJsonPathExpressions

      public String getJsonPathExpressions()
    • setJsonPathExpressions

      public void setJsonPathExpressions(String jsonPath)
    • getRefNames

      public String getRefNames()
    • setRefNames

      public void setRefNames(String refName)
    • getDefaultValues

      public String getDefaultValues()
    • setDefaultValues

      public void setDefaultValues(String defaultValue)
    • getComputeConcatenation

      public boolean getComputeConcatenation()
    • setComputeConcatenation

      public void setComputeConcatenation(boolean computeConcatenation)
    • threadStarted

      public void threadStarted()
      Description copied from interface: ThreadListener
      Called for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet. See org.apache.jmeter.threads.JMeterThread#threadStarted()
      Specified by:
      threadStarted in interface ThreadListener
    • threadFinished

      public void threadFinished()
      Description copied from interface: ThreadListener
      Called for each thread after all samples have been processed. See org.apache.jmeter.threads.JMeterThread#threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)
      Specified by:
      threadFinished in interface ThreadListener
    • setMatchNumbers

      public void setMatchNumbers(String matchNumber)
    • getMatchNumbers

      public String getMatchNumbers()
    • getMatchNumbersAsInt

      public int[] getMatchNumbersAsInt(int arraySize)