Class JMESPathExtractorWrapper

    • Method Detail

      • getGuiClass

        public java.lang.Class<?> getGuiClass()
        Description copied from interface: JMeterGUIWrapper
        Gui Test Class used by Jmeter TestElement.GUI_CLASS @See TestElement
        Specified by:
        getGuiClass in interface JMeterGUIWrapper<org.apache.jmeter.extractor.json.jmespath.gui.JMESPathExtractorGui>
      • getTestClass

        public java.lang.Class<?> getTestClass()
        Description copied from interface: TestElementWrapper
        Test Class used by Jmeter TestElement.TEST_CLASS. @See TestElement.
        Specified by:
        getTestClass in interface TestElementWrapper<org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor>
      • getJmesPathExpr

        public java.lang.String getJmesPathExpr()
        Element query in JMESPath query language. Can return the matched result.
      • setJmesPathExpr

        public void setJmesPathExpr​(java.lang.String jmesPathExpr)
        Element query in JMESPath query language. Can return the matched result.
      • getRefName

        public java.lang.String getRefName()
        Name of created variable. The name of the JMeter variable in which to store the result.
      • setRefName

        public void setRefName​(java.lang.String refName)
        Name of created variable. The name of the JMeter variable in which to store the result.
      • getMatchNumber

        public java.lang.String getMatchNumber()
        If the JMESPath query leads to many results, you can choose which one(s) to extract as Variables:

        0: means random -1 means extract all results (default value), they will be named as <variable name>_N (where N goes from 1 to Number of results) X: means extract the Xth result. If this Xth is greater than number of matches, then nothing is returned. Default value will be used

      • setMatchNumber

        public void setMatchNumber​(java.lang.String matchNumber)
        If the JMESPath query leads to many results, you can choose which one(s) to extract as Variables:

        0: means random -1 means extract all results (default value), they will be named as <variable name>_N (where N goes from 1 to Number of results) X: means extract the Xth result. If this Xth is greater than number of matches, then nothing is returned. Default value will be used

      • getDefaultValue

        public java.lang.String getDefaultValue()
        Default value returned when no match found. It is also returned if the node has no value and the fragment option is not selected.
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Default value returned when no match found. It is also returned if the node has no value and the fragment option is not selected.