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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 7 years ago.
回答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