Coversion of Junit XML Report into HTML form [closed]

喜夏-厌秋 提交于 2019-12-20 06:28:54

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/12855740/coversion-of-junit-xml-report-into-html-form

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