简体   繁体   中英

How to append the results HTML output file on JMeter tests using Ant

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.

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.

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.

Thank you in advance.

If you are using JMeter Ant Task try this - it uses a FileSet for the testplans:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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