`

Set reortNG in build.xml

阅读更多
To use the reporting plug-in, set the listeners attribute of the testng element in your Ant build file. This attribute takes a comma-separated list of reporter class names. The class names for the ReportNG reporters are:

        org.uncommons.reportng.HTMLReporter
        org.uncommons.reportng.JUnitXMLReporter
     

You may also want to disable the default TestNG reporters by setting the useDefaultListeners attribute to "false".

Your Ant task will probably look something like this:

        <testng classpathref="test-path"
                outputdir="${test-results.dir}"
                haltonfailure="true"
                useDefaultListeners="false"
                listeners="org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter">
          <xmlfileset dir="." includes="testng.xml"/>
          <sysproperty key="org.uncommons.reportng.title" value="My Test Report"/>
        </testng>
     

The reportng-1.1.2.jar and velocity-dep-1.4.jar files must be included in the classpath used to run the tests.
分享到:
评论

相关推荐

    maven的set.xml配置文件

    maven的set.xml配置文件

    struts-config.xml配置文件详解

    Struts-config.xml 配置文件详解 Struts-config.xml 是 Struts 框架的主要配置文件,用于配置 Struts 应用程序的各种设置。在该文件中,可以配置数据源、Form Bean、Action 和插件等信息。下面是 Struts-config.xml...

    为Android系统添加config.xml 新配置的设置

    在日常系统开发中,经常需要在adroid的framework修改或添加自己的配置。例如在config.xml 添加一个新的变量。...set default inputmethod. –&gt; &lt;string translatable=”false” name=”config_def_input_me

    vb6XML读写

    For Each xnf In xlst Set xe = xnf Set xlst1 = xe.childNodes With ListView1.ListItems.Add(, , xlst1.Item(0).Text) .SubItems(1) = xlst1.Item(1).Text .SubItems(2) = xlst1.Item(2).Text End With Next

    javascript操作XML

    set objXml=CreateObject("Microsoft.XMLDOM") '创建解析器对象 objXml.async="false" objXml.load("test.xml") '装载xml文件 objXml.load(Server.MapPath("test.xml")) '根据绝对路径装载xml文件 Set ...

    WSDD + TOMCAT 一键部署Webservices

    [javac] D:\java\wsdd\build.xml:16: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 5 source files to D:\java\...

    pom.xml maven project object model

    a NB project object model file, which is very userful to set up one maven project

    mtdorb1.0b8

    file build.properties.pattern in build.properties and set specific for your machine parameters, then start build.bat (for Windows platform) or build.sh (for Linux) in root project folder. After ...

    10.javaSet 接口及其实现类.zip

    10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类....

    p3c-pmd-2.0.0.jar

    rulesets/java/ali-exception.xml,rulesets/java/ali-flowcontrol.xml,rulesets/java/ali-naming.xml,rulesets/java/ali-oop.xml,rulesets/java/ali-other.xml,rulesets/java/ali-set.xml -f text

    axis2客户端调用axis1服务接口

    System.setProperty("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory"); System.setProperty("javax.xml.stream.XMLOutputFactory", ...

    Set theory and logic.pdf

    Set theory and logic.pdf

    cordova-set-version:用于在Apache Cordova config.xml中设置版本的CLI和JavaScript API

    将version和buildNumber写入Cordova config.xml 可以从本地package.json读取version 有CLI 安装 $ npm install cordova-set-version 用法 const cordovaSetVersion = require ( 'cordova-set-version' ) ; ...

    Qwinff_0.1.9中文版(跨平台媒体转换器qt)

    - Several program parameters can be set in constants.xml. - Minor UI improvements - Can now set version-specific ffmpeg parameters in presets.xml. - Compatible with newer ffmpeg versions ("-sameq...

    dp18_ap6330整理完工20170209_1129.7z

    hardware/broadcom/libbt/src/userial_vendor.c: In function 'userial_set_port': hardware/broadcom/libbt/src/userial_vendor.c:386:28: warning: unused parameter 'p_conf_name' [-Wunused-parameter] int ...

    springboot集成impala(包含yml、impala配置类、pom.xml、impala jar)

    springboot集成impala,包含yml文件、impala配置Bean、ImpalaJDBC41-2.6.4.1005.jar和impala在pom.xml中的配置,有问题留言

    OPCUA_Nodeset+open62541.7z

    OPUC UA Nodeset 所有结点示例(XML和bsd文件)和开源open62541的opc ua server、client实现源码C++库。 open62541 is licensed under the Mozilla Public License v2.0 (MPLv2). This allows the open62541 library...

    配置Maven私服配置文件setting.xml

    配置Maven私服时,需要修改Maven的默认配置文件,此文件已经配置好Maven私服模板,只需要修改IP和对应的端口号即可

    IPMICFG_1.33.0_build.210528.zip windows

    IPMICFG 是一款用来配置 IPMI 装置的本机端 (In-band/Local) 工具。其命令行工具提供了标准 IPMI 指令与 Supermicro 专属的 OEM 指令用于作BMC/FRU 配置。此命令列介面工具可在 UEFI、DOS、Windows 与 Linux 操作...

    mtdorb_1.0beta6

    Before build project rename file build.properties.pattern in build.properties and set specific for your machine parameters, then start build.bat (for Windows platform) or build.sh (for Linux)...

Global site tag (gtag.js) - Google Analytics