TestNG-xslt 生成报告

上一篇 / 下一篇  2012-05-06 08:07:35 / 个人分类:TestNG/Ant/Eclipse/Java

TAG:

MillionRoses 引用 删除 dian106106   /   2012-05-16 13:49:28
.testMethodsTable { margin-top: -20px; font-size: 12px; }

在style.css中改margin-top
MillionRoses 引用 删除 dian106106   /   2012-05-16 13:46:59
改css //nowrap="true"  不换行
<td nowrap="true" class="firstMethodCell">
                  <a onclick="toggleDetailsVisibility('ENSG.carsoelSlideShow_carsoelslideshow_byClass_PASS1_details')">carsoelslideshow(http://xin.msn.com/?lang=en-sg)</a>
               </td>

Default suite_Default test.html
MillionRoses 引用 删除 dian106106   /   2012-05-09 01:16:45
<project name= "MSNHP" basedir= "." >
<property name= "lib.dir" value= "lib"/>
<path id= "test.classpath" >
         <!-- adding the saxon jar to your classpath -->
<fileset dir= "${lib.dir}" includes= "*.jar"/>
</path>
<target name= "transform" >
<xslt in= "C:\eclipse\workspace\MSNHP\test-output\testng-results.xml" style= "C:\eclipse\workspace\MSNHP\test-output\testng-results.xsl"
out= "C:\eclipse\workspace\MSNHP\test-output\index1.html">
             <!-- you need to specify the directory here again -->
<param name= "testNgXslt.outputDir" expression= "C:\eclipse\workspace\MSNHP\test-output"/>
<classpath refid= "test.classpath"/>
</xslt>
</target>
</project>
MillionRoses 引用 删除 dian106106   /   2012-05-08 08:23:15
<project name="myproject" basedir=".">
    <property name="lib.dir" value="lib"/>

    <path id="test.classpath">
         <!-- adding the saxon jar to your classpath -->
        <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>

    <target name="transform">
        <xslt in="path/to/your/testng-results.xml"style="path/to/the/testng-results.xsl"
              out="/path/to/your/output/directory/index.html">
             <!-- you need to specify the directory here again -->
            <param name="testNgXslt.outputDir"expression="/path/to/your/output/directory/"/>
            <classpath refid="test.classpath"/>
        </xslt>
    </target>
</project>
MillionRoses 引用 删除 dian106106   /   2012-05-07 10:54:31
add
classpath
path
MillionRoses 引用 删除 dian106106   /   2012-05-07 10:54:00
安装ant

将你下载的压缩包解压,然后放在你喜欢的任何位置,如:c:/ant/,然后在“我的电脑->属性->高级->环境变量 ->新建”指定:ANT_HOME,值为:c:/ant,并在classpath中添加:%ANT_HOME%\bin;
 

评分:0

我来说两句

日历

« 2024-05-13  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 74671
  • 日志数: 80
  • 建立时间: 2012-04-12
  • 更新时间: 2013-05-21

RSS订阅

Open Toolbar