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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplay the response as text or as rendered HTML.voidprotected voidexecuteTester(String textToParse) Launch JSON path engine to parse a input textprotected Stringprotected JLabeledTextFieldprotected Stringprotected JSyntaxTextAreaprotected JPanelprotected JTextAreaprotected JTabbedPaneprotected Stringprotected Stringvoidinit()protected StringvoidrenderImage(SampleResult sampleResult) voidrenderResult(SampleResult sampleResult) voidsetBackgroundColor(Color backGround) voidsetLastSelectedTab(int index) voidsetRightSide(JTabbedPane side) voidsetSamplerResult(Object userObject) voidtoString()
-
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:
toStringin interfaceResultRenderer- Overrides:
toStringin classObject- Returns:
- the string to be displayed by the ComboBox
-
clearData
public void clearData()- Specified by:
clearDatain interfaceResultRenderer
-
init
public void init()- Specified by:
initin interfaceResultRenderer
-
actionPerformed
Display the response as text or as rendered HTML. Change the text on the button appropriate to the current display.- Specified by:
actionPerformedin 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:
renderResultin interfaceResultRenderer
-
setupTabPane
public void setupTabPane()- Specified by:
setupTabPanein interfaceResultRenderer
-
setRightSide
- Specified by:
setRightSidein interfaceResultRenderer
-
setSamplerResult
- Specified by:
setSamplerResultin interfaceResultRenderer
-
setLastSelectedTab
public void setLastSelectedTab(int index) - Specified by:
setLastSelectedTabin interfaceResultRenderer
-
renderImage
- Specified by:
renderImagein interfaceResultRenderer
-
setBackgroundColor
- Specified by:
setBackgroundColorin interfaceResultRenderer
-
getRightSide
- Returns:
- the rightSide
-
getJsonWithExtractorPanel
- Returns:
- the jsonWithExtractorPanel
-
getJsonDataField
- Returns:
- the jsonDataField
-
getExpressionField
- Returns:
- the expressionField
-
getResultField
- Returns:
- the resultField
-