Class RenderAsJmesPathRenderer

java.lang.Object
org.apache.jmeter.extractor.json.render.RenderAsJmesPathRenderer
All Implemented Interfaces:
ActionListener, EventListener, ResultRenderer

@AutoService(ResultRenderer.class) public class RenderAsJmesPathRenderer extends Object
Implement ResultsRender for JMES Path tester
Since:
5.2
  • Field Details

  • Constructor Details

    • RenderAsJmesPathRenderer

      public RenderAsJmesPathRenderer()
  • Method Details

    • getTabLabel

      protected String getTabLabel()
      Returns:
      Tab label
    • getTestButtonLabel

      protected String getTestButtonLabel()
      Returns:
      Test button label
    • getExpressionLabel

      protected String getExpressionLabel()
      Returns:
      The label for the technology expression
    • process

      protected String process(String textToParse)
      Parameters:
      textToParse - String of the response to process
      Returns:
      the extracted values using the technology
    • toString

      public String toString()
      Specified by:
      toString in interface ResultRenderer
      Overrides:
      toString in class Object
      Returns:
      the string to be displayed by the ComboBox
    • clearData

      public void clearData()
      Specified by:
      clearData in interface ResultRenderer
    • init

      public void init()
      Specified by:
      init in interface ResultRenderer
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Display the response as text or as rendered HTML. Change the text on the button appropriate to the current display.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the ActionEvent being processed
    • executeTester

      protected void executeTester(String textToParse)
      Launch JSON path engine to parse a input text
      Parameters:
      textToParse - the text that will be parsed
    • getExpression

      protected String getExpression()
    • renderResult

      public void renderResult(SampleResult sampleResult)
      Specified by:
      renderResult in interface ResultRenderer
    • setupTabPane

      public void setupTabPane()
      Specified by:
      setupTabPane in interface ResultRenderer
    • setRightSide

      public void setRightSide(JTabbedPane side)
      Specified by:
      setRightSide in interface ResultRenderer
    • setSamplerResult

      public void setSamplerResult(Object userObject)
      Specified by:
      setSamplerResult in interface ResultRenderer
    • setLastSelectedTab

      public void setLastSelectedTab(int index)
      Specified by:
      setLastSelectedTab in interface ResultRenderer
    • renderImage

      public void renderImage(SampleResult sampleResult)
      Specified by:
      renderImage in interface ResultRenderer
    • setBackgroundColor

      public void setBackgroundColor(Color backGround)
      Specified by:
      setBackgroundColor in interface ResultRenderer
    • getRightSide

      protected JTabbedPane getRightSide()
      Returns:
      the rightSide
    • getJsonWithExtractorPanel

      protected JPanel getJsonWithExtractorPanel()
      Returns:
      the jsonWithExtractorPanel
    • getJsonDataField

      protected JSyntaxTextArea getJsonDataField()
      Returns:
      the jsonDataField
    • getExpressionField

      protected JLabeledTextField getExpressionField()
      Returns:
      the expressionField
    • getResultField

      protected JTextArea getResultField()
      Returns:
      the resultField