Class JMESPathExtractor

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

public class JMESPathExtractor extends AbstractScopedTestElement implements Serializable, PostProcessor, TestStateListener
JMESPATH based extractor
Since:
5.2
See Also:
  • Constructor Details

    • JMESPathExtractor

      public JMESPathExtractor()
  • 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
    • splitJson

      public List<String> splitJson(com.fasterxml.jackson.databind.JsonNode jsonNode) throws IOException
      Throws:
      IOException
    • getJmesPathExpression

      public String getJmesPathExpression()
    • setJmesPathExpression

      public void setJmesPathExpression(String jsonPath)
    • getRefName

      public String getRefName()
    • setRefName

      public void setRefName(String refName)
    • getDefaultValue

      public String getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • setMatchNumber

      public void setMatchNumber(String matchNumber)
    • getMatchNumber

      public String getMatchNumber()
    • testStarted

      public void testStarted()
      Description copied from interface: 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.

      Specified by:
      testStarted in interface TestStateListener
      See Also:
    • testStarted

      public void testStarted(String host)
      Description copied from interface: 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.

      Specified by:
      testStarted in interface TestStateListener
      Parameters:
      host - name of host
      See Also:
    • testEnded

      public void testEnded()
      Description copied from interface: 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.

      Specified by:
      testEnded in interface TestStateListener
      See Also:
    • testEnded

      public void testEnded(String host)
      Description copied from interface: 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.

      Specified by:
      testEnded in interface TestStateListener
      Parameters:
      host - name of host
      See Also: