Package org.apache.jmeter.visualizers
Class RenderAsJSON
-
- All Implemented Interfaces:
-
org.apache.jmeter.visualizers.ResultRenderer
@AutoService(value = ResultRenderer.class) public class RenderAsJSON extends SamplerResultTab implements ResultRenderer
-
-
Field Summary
Fields Modifier and Type Field Description public final static ColorSERVER_ERROR_COLORpublic final static ColorCLIENT_ERROR_COLORpublic final static ColorREDIRECT_COLOR
-
Constructor Summary
Constructors Constructor Description RenderAsJSON()
-
Method Summary
Modifier and Type Method Description voidrenderResult(SampleResult sampleResult)static StringprettyJSON(String json)Pretty-print JSON text static StringprettyJSON(String json, String tabSeparator)Pretty-print JSON text StringtoString()-
Methods inherited from class org.apache.jmeter.visualizers.SamplerResultTab
clearData, init, renderImage, setBackgroundColor, setLastSelectedTab, setRightSide, setSamplerResult, setupTabPane -
Methods inherited from class org.apache.jmeter.visualizers.ResultRenderer
setRightSide, setSamplerResult -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
renderResult
void renderResult(SampleResult sampleResult)
-
prettyJSON
static String prettyJSON(String json)
Pretty-print JSON text
- Parameters:
json- input text- Returns:
prettied json string
-
prettyJSON
static String prettyJSON(String json, String tabSeparator)
Pretty-print JSON text
- Parameters:
json- input texttabSeparator- String tab separator- Returns:
prettied json string
-
-
-
-