如何在多个结果文件上运行jmeter-analysis-maven-plugin [英] How to run jmeter-analysis-maven-plugin on multiple result files

查看:149
本文介绍了如何在多个结果文件上运行jmeter-analysis-maven-plugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在maven中使用插件jmeter-analysis-maven-plugin进行一些性能测试分析(生成带有图表的详细报告),我已经将该插件配置为将所有jtl文件作为输入,但是运行后我评论了它只处理了一个文件(第一个文件按字母顺序排列),在我的插件配置在pom文件中之后:

I'm using the plugin jmeter-analysis-maven-plugin in maven to perform some performance test analysis (generate detailed reports with charts), i have configured the plugin to take as input all jtl files, but after running i remarked that it processed just one file (the first one according alphabetical order), here after my plugin configuration in pom file :

        <plugin>
            <groupId>com.lazerycode.jmeter</groupId>
            <artifactId>jmeter-analysis-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>thread</id>
                    <phase>install</phase>
                    <goals>
                        <goal>analyze</goal>
                    </goals>
                    <configuration>
                        <source>${project.build.directory}/**/*.jtl</source>
                        <targetDirectory>${project.build.directory}/jmeter/test_report</targetDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>

欢迎您提出您的想法...非常感谢!

Your ideas are welcome...thanks a lot in advance !

推荐答案

好,我已经找到了解决方法,确实可以将属性"processAllFilesFound"添加到插件配置中:

Ok, i have found how to do it, indeed it was enough to add the property "processAllFilesFound" to the plugin configuration :

<configuration>
  <source>${project.build.directory}/**/*.jtl</source>
  <targetDirectory>${project.build.directory}/jmeter/test_report</targetDirectory>
  <processAllFilesFound>true</processAllFilesFound>
</configuration>

这篇关于如何在多个结果文件上运行jmeter-analysis-maven-plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆