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配置文件
Struts-config.xml 配置文件详解 Struts-config.xml 是 Struts 框架的主要配置文件,用于配置 Struts 应用程序的各种设置。在该文件中,可以配置数据源、Form Bean、Action 和插件等信息。下面是 Struts-config.xml...
在日常系统开发中,经常需要在adroid的framework修改或添加自己的配置。例如在config.xml 添加一个新的变量。...set default inputmethod. –> <string translatable=”false” name=”config_def_input_me
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
set objXml=CreateObject("Microsoft.XMLDOM") '创建解析器对象 objXml.async="false" objXml.load("test.xml") '装载xml文件 objXml.load(Server.MapPath("test.xml")) '根据绝对路径装载xml文件 Set ...
[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\...
a NB project object model file, which is very userful to set up one maven project
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 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类.zip10.javaSet 接口及其实现类....
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
System.setProperty("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory"); System.setProperty("javax.xml.stream.XMLOutputFactory", ...
Set theory and logic.pdf
将version和buildNumber写入Cordova config.xml 可以从本地package.json读取version 有CLI 安装 $ npm install cordova-set-version 用法 const cordovaSetVersion = require ( 'cordova-set-version' ) ; ...
- 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...
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配置Bean、ImpalaJDBC41-2.6.4.1005.jar和impala在pom.xml中的配置,有问题留言
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私服时,需要修改Maven的默认配置文件,此文件已经配置好Maven私服模板,只需要修改IP和对应的端口号即可
IPMICFG 是一款用来配置 IPMI 装置的本机端 (In-band/Local) 工具。其命令行工具提供了标准 IPMI 指令与 Supermicro 专属的 OEM 指令用于作BMC/FRU 配置。此命令列介面工具可在 UEFI、DOS、Windows 与 Linux 操作...
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)...