如何在多个结果文件上 运行 jmeter-analysis-maven-plugin

How to run jmeter-analysis-maven-plugin on multiple result files

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

        <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>

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

好的,我找到了方法,确实将 属性 "processAllFilesFound" 添加到插件配置中就足够了:

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