Class JSONPostProcessorWrapper

    • Method Detail

      • jsonPathExprsProp

        protected java.lang.String jsonPathExprsProp()
      • referenceNamesProp

        protected java.lang.String referenceNamesProp()
      • defaultValuesProp

        protected java.lang.String defaultValuesProp()
      • 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.jsonpath.gui.JSONPostProcessorGui>
      • 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.jsonpath.JSONPostProcessor>
      • getJsonPathExprs

        public java.util.List<java.lang.String> getJsonPathExprs()
        JSON-PATH expressions (must match number of variables).
      • setJsonPathExprs

        public void setJsonPathExprs​(java.util.List<java.lang.String> jsonPathExprs)
        JSON-PATH expressions (must match number of variables).
      • getReferenceNames

        public java.util.List<Variable> getReferenceNames()
        Semi-colon separated names of variables that will contain the results of JSON-PATH expressions (must match number of JSON-PATH expressions).
      • setReferenceNames

        public void setReferenceNames​(java.util.List<Variable> referenceNames)
        Semi-colon separated names of variables that will contain the results of JSON-PATH expressions (must match number of JSON-PATH expressions).
      • getMatchNumber

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

        0: means random (Default Value) -1 means extract all results, 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 JSON Path query leads to many results, you can choose which one(s) to extract as Variables:

        0: means random (Default Value) -1 means extract all results, 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

      • getDefaultValues

        public java.util.List<java.lang.String> getDefaultValues()
        Semi-colon separated default values if JSON-PATH expressions do not return any result(must match number of variables).
      • setDefaultValues

        public void setDefaultValues​(java.util.List<java.lang.String> defaultValues)
        Semi-colon separated default values if JSON-PATH expressions do not return any result(must match number of variables).
      • isComputeConcat

        public boolean isComputeConcat()
        Default value returned when no match found. It is also returned if the node has no value and the fragment option is not selected.
      • setComputeConcat

        public void setComputeConcat​(boolean computeConcat)
        Default value returned when no match found. It is also returned if the node has no value and the fragment option is not selected.