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

匆匆过客 提交于 2019-12-13 02:14:37

问题


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 !


回答1:


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>


来源:https://stackoverflow.com/questions/31879949/how-to-run-jmeter-analysis-maven-plugin-on-multiple-result-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!