简体   繁体   English

JMeter插件,用于在XSL模板中指定的HTML报告中生成参数

[英]JMeter plugin for generate parameters in HTML report specified in XSL template

Does anybody know how to generate a HTML report in JMeter with some java template engine (XSLT, Xalan, etc.) working with specified XSL template? 有谁知道如何使用某些Java模板引擎(XSLT,Xalan等)在JMeter中生成HTML报告,并使用指定的XSL模板?

The reason why I want to use a template engine is that I want in HTML report just parameters that I specified in XSL template (for example I want just a one graph for throughput in HTML report and no other graphs). 我想使用模板引擎的原因是,我希望在HTML报表中只使用XSL模板中指定的参数(例如,我只希望一个图用于HTML报表中的吞吐量,而没有其他图)。

And if is possible without using CMD but using some a JAVA plugin as "Listener". 如果不使用CMD而是使用一些JAVA插件作为“侦听器”,则有可能。

Thank you very lot. 非常感谢

Be aware that JMeter has a couple of XSL templates you can either use or re-use as a basis, they are located under "extras" folder of your JMeter installation, or if you obtained JMeter via some form of package manager you can get them from JMeter source repositories at: 请注意,JMeter有两个XSL模板,您可以根据需要使用或重复使用它们,它们位于JMeter安装目录的“ extras”文件夹下,或者如果您通过某种形式的软件包管理器获得了JMeter,则可以获取它们。从JMeter源代码库中:

The above XSL templates are called from the JMeter Ant Task , the build.xml Ant script can also be found under "extras" folder, check out xslt-report target to see how you can trigger the .jtl result file transformation. 上面的XSL模板是从JMeter Ant Task调用的,还可以在“ extras”文件夹下找到build.xml Ant脚本,查看xslt-report目标以了解如何触发.jtl结果文件转换。

You can also check out Five Ways To Launch a JMeter Test without Using the JMeter GUI article for more information on "alternative" ways of running JMeter tests, it covers Ant and Maven plugins which both use XSLT transformation in order to produce the load report. 您还可以查看不使用JMeter GUI的五种方法来启动JMeter测试的文章,以获取有关运行JMeter测试的“替代”方式的更多信息,它涵盖了Ant和Maven插件,它们均使用XSLT转换以生成负载报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM