Class RenderAsJmesPathRenderer
java.lang.Object
org.apache.jmeter.extractor.json.render.RenderAsJmesPathRenderer
- All Implemented Interfaces:
ActionListener
,EventListener
,ResultRenderer
Implement ResultsRender for JMES Path tester
- Since:
- 5.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Display the response as text or as rendered HTML.void
protected void
executeTester
(String textToParse) Launch JSON path engine to parse a input textprotected String
protected JLabeledTextField
protected String
protected JSyntaxTextArea
protected JPanel
protected JTextArea
protected JTabbedPane
protected String
protected String
void
init()
protected String
void
renderImage
(SampleResult sampleResult) void
renderResult
(SampleResult sampleResult) void
setBackgroundColor
(Color backGround) void
setLastSelectedTab
(int index) void
setRightSide
(JTabbedPane side) void
setSamplerResult
(Object userObject) void
toString()
-
Field Details
-
NO_MATCH
- See Also:
-
-
Constructor Details
-
RenderAsJmesPathRenderer
public RenderAsJmesPathRenderer()
-
-
Method Details
-
getTabLabel
- Returns:
- Tab label
-
getTestButtonLabel
- Returns:
- Test button label
-
getExpressionLabel
- Returns:
- The label for the technology expression
-
process
- Parameters:
textToParse
- String of the response to process- Returns:
- the extracted values using the technology
-
toString
- Specified by:
toString
in interfaceResultRenderer
- Overrides:
toString
in classObject
- Returns:
- the string to be displayed by the ComboBox
-
clearData
public void clearData()- Specified by:
clearData
in interfaceResultRenderer
-
init
public void init()- Specified by:
init
in interfaceResultRenderer
-
actionPerformed
Display the response as text or as rendered HTML. Change the text on the button appropriate to the current display.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
e
- the ActionEvent being processed
-
executeTester
Launch JSON path engine to parse a input text- Parameters:
textToParse
- the text that will be parsed
-
getExpression
-
renderResult
- Specified by:
renderResult
in interfaceResultRenderer
-
setupTabPane
public void setupTabPane()- Specified by:
setupTabPane
in interfaceResultRenderer
-
setRightSide
- Specified by:
setRightSide
in interfaceResultRenderer
-
setSamplerResult
- Specified by:
setSamplerResult
in interfaceResultRenderer
-
setLastSelectedTab
public void setLastSelectedTab(int index) - Specified by:
setLastSelectedTab
in interfaceResultRenderer
-
renderImage
- Specified by:
renderImage
in interfaceResultRenderer
-
setBackgroundColor
- Specified by:
setBackgroundColor
in interfaceResultRenderer
-
getRightSide
- Returns:
- the rightSide
-
getJsonWithExtractorPanel
- Returns:
- the jsonWithExtractorPanel
-
getJsonDataField
- Returns:
- the jsonDataField
-
getExpressionField
- Returns:
- the expressionField
-
getResultField
- Returns:
- the resultField
-