Coversion of Junit XML Report into HTML form [clos

2020-05-06 03:03发布

I am using soapui free version to generate the report of test cases,but it is only generating a junit report in XML form, now I want to convert that into an HTML form.

标签: junit soapui
1条回答
霸刀☆藐视天下
2楼-- · 2020-05-06 03:59

There are several ways to do that, but you can simply use XSL transformation (junitreport option) as suggested by this answer How can I generate an HTML report for Junit results?

<junitreport todir="${outputdir}">
    <fileset dir="${jrdir}">
        <include name="TEST-*.xml"/>
    </fileset>
    <report todir="${outputdir}/html"
        styledir="junitreport"
        format="frames">
        <param name="key1" expression="value1"/>
        <param name="key2" expression="value2"/>
    </report>
</junitreport>

I would also suggest to consider the possibility to use TestNG, please find out all details here https://stackoverflow.com/questions/12768214/testng-or-junit-in-java/12768737#12768737

查看更多
登录 后发表回答