I have the following issue.
我有以下问题。
I have 100+ Jmeter tests as separate files with the tendency to add more. Using Ant I have configured the results to come into a separate output HTML file for each test. So now when I have 100+ tests I get 100+ resulting HTML files. And I need to check every single one if the tests run OK.
我有100多个Jmeter测试作为单独的文件,倾向于添加更多。使用Ant我已将结果配置为每个测试的单独输出HTML文件。所以现在当我有100多个测试时,我得到了100多个生成的HTML文件。如果测试运行正常,我需要检查每一个。
My question is how to make the Ant append the results into one HTML file for all 100+ tests so I can view with a single glance that the tests run OK.
我的问题是如何让Ant将结果附加到一个HTML文件中,用于所有100多个测试,这样我就可以一眼就看出测试运行正常。
I guess I either need to modify the ..extras/build.xml file in Jmeter or modify the command line where I invoke my tests via Ant.
我想我要么需要修改Jmeter中的..extras / build.xml文件,要么修改命令行,我通过Ant调用我的测试。
Thank you in advance.
先感谢您。
1 个解决方案
#1
If you are using JMeter Ant Task try this - it uses a FileSet
for the testplans:
如果你正在使用JMeter Ant任务试试这个 - 它为测试计划使用FileSet:
<jmeter
jmeterhome="c:\jakarta-jmeter-1.8.1"
resultlog="${basedir}/loadtests/JMeterResults.jtl">
<testplans dir="${basedir}/loadtests" includes="*.jmx"/>
</jmeter>
So, it will only be one result file generated and then transformed into HTML.
因此,它只会生成一个结果文件,然后转换为HTML。
#1
If you are using JMeter Ant Task try this - it uses a FileSet
for the testplans:
如果你正在使用JMeter Ant任务试试这个 - 它为测试计划使用FileSet:
<jmeter
jmeterhome="c:\jakarta-jmeter-1.8.1"
resultlog="${basedir}/loadtests/JMeterResults.jtl">
<testplans dir="${basedir}/loadtests" includes="*.jmx"/>
</jmeter>
So, it will only be one result file generated and then transformed into HTML.
因此,它只会生成一个结果文件,然后转换为HTML。