美化之前是这样的:

TestNG测试报告美化

美化之后是这样的:

TestNG测试报告美化

Ant build.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<project name="selenium" default="run" basedir="." >
    <property name="lib.dir" value="lib"/>
    <path id="test.classpath">
        <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>
    <target name="run">
        <delete file="test-output/UI_Test.html" />
        <xslt in="C:/Selenium/test-output/testng-results.xml"
              style="C:/Selenium/test-output/testng-results.xsl"
              out="C:/Selenium/test-output/UI_Test.html" processor="SaxonLiaison">
            <param name="testNgXslt.outputDir" expression="C:/Selenium/test-output" />
            <param name="testNgXslt.showRuntimeTotals" expression="true" />
            <param name="testNgXslt.sortTestCaseLinks" expression="true" />
            <param name="testNgXslt.testDetailsFilter" expression="FAIL,SKIP,PASS,CONF,BY_CLASS" />
            <classpath refid="test.classpath" />
        </xslt>
    </target>
</project>

相关文章:

  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-07-30
  • 2021-08-28
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-06-21
  • 2021-11-06
  • 2021-10-11
  • 2021-12-06
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案