Bug 64119 - Set JSON as default into 'View Results Tree'
Summary: Set JSON as default into 'View Results Tree'
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.2.1
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.3.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2020-02-06 12:00 UTC by vlatko606
Modified: 2020-03-15 14:27 UTC (History)
1 user (show)



Attachments
jmeter (8.41 KB, image/png)
2020-02-06 12:00 UTC, vlatko606
Details
Use the order property to set the default renderer (2.99 KB, patch)
2020-02-11 22:32 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vlatko606 2020-02-06 12:00:42 UTC
Created attachment 36994 [details]
jmeter

I can find way to set: order of the renders, but is it possible to set JSON as default?

What ever I set, text is always set as default render.

*The config file that i used is: jmeter.proporties

*JMeter version: 5.11

*view.results.tree.renderers_order=.RenderAsJSON,.RenderAsText,.RenderAsRegexp,.RenderAsBoundaryExtractor,.RenderAsCssJQuery,.RenderAsXPath,org.apache.jmeter.extractor.json.render.RenderAsJsonRenderer,.RenderAsHTML,.RenderAsHTMLFormatted,.RenderAsHTMLWithEmbedded,.RenderAsDocument,.RenderAsXML
Comment 1 Felix Schumacher 2020-02-11 22:32:27 UTC
Created attachment 37013 [details]
Use the order property to set the default renderer

I think it makes sense to use the order property for renderers to select the default renderer as well.

What are others thinking?
Comment 2 Philippe Mouawad 2020-02-12 08:51:50 UTC
Hi Felix,
Makes sense to me.

Regards
Comment 3 Felix Schumacher 2020-02-12 17:16:37 UTC
Will be contained in the next version of JMeter.

@vlatko606 can you try the next nightly and report back, if it works for you?

commit 243e0d1d8d875e6205d8da57189a28ff74e4953a
AuthorDate: Tue Feb 11 23:33:21 2020 +0100

    Use order property for renderes to select default renderer
    
    Use first renderer from view.results.tree.renderers_order property as default in View Results Tree
    
    Bugzilla Id: 64119
---
 .../visualizers/ViewResultsFullVisualizer.java     | 24 ++++++++++++++--------
 xdocs/changes.xml                                  |  2 ++
 2 files changed, 18 insertions(+), 8 deletions(-)