在 ReportNG 中没有得到 TestNG 的报告 [英] Not getting report of TestNG in ReportNG
问题描述
我在 Eclipse 中执行 testng,我想在 reportNG 中生成报告.为此,我已包含 guice-3.0、reportng-1.1.3、velocity-dep-1.4 jar 文件并在 xml 文件中添加了侦听器我还在 Eclipse 中禁用了默认的 TestNG 侦听器.毕竟我没有在 ReportNG 中得到报告.我还需要做什么?
I am executing testng in eclipse and I want generate the report in reportNG. For that I have inlcuded guice-3.0,reportng-1.1.3,velocity-dep-1.4 jar files and added listeners in xml file Also I have disable the default TestNG listener in eclipse. After all that I am not getting the report in ReportNG. What else I have to do?
这是xml代码....
This is the xml code....
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Registration" verbose="1" preserve-order="true">
<parameter name="Suitename" value="Registration" />
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter" />
<listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
</listeners>
<test name="Search">
<classes>
<class name="com.tcs.medmantra.reg.Search"/>
</classes>
</test>
</suite>
提前谢谢.....
推荐答案
您必须首先通过运行
testng.xml
作为TestNG 套件
来运行测试.
You have to first run the tests by running the
testng.xml
asTestNG suite
.
然后刷新项目.
现在转到 test-output
文件夹 -->html-->index.html(使用 Web 浏览器打开)
.
Now goto the test-output
folder -->html-->index.html (Open with Web Browser)
.
这篇关于在 ReportNG 中没有得到 TestNG 的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!