没有得到在ReportNG TestNG的报告 [英] Not getting report of TestNG in ReportNG
问题描述
我执行在Eclipse TestNG的,我想生成reportNG报告。对于我已经inlcuded吉斯-3.0,reportng-1.1.3,速度-DEP-1.4 jar文件并添加XML文件中的听众我也有在eclipse禁用默认TestNG的监听器。
一切后我没有收到在ReportNG报告。我还能做什么?
这是XML code ....
<?XML版本=1.0编码=UTF-8&GT?;
<!DOCTYPE套件系统http://testng.org/testng-1.0.dtd\"><套件名称=注册详细=1preserve阶=真正的><参数名称=SuitenameVALUE =注册/> <&听众GT;
<监听器类名=org.uncommons.reportng.HTMLReporter/>
<监听器类名=org.uncommons.reportng.JUnitXMLReporter/>
< /听众> <试验NAME =搜索>
<&班GT;
<类名=com.tcs.medmantra.reg.Search/>
< /班>
< /试验>< /套房>
在此先感谢.....
-
您必须先通过运行
的testng.xml
为TestNG的套件运行测试
。 -
在那之后刷新项目。
-
现在转到这个
测试输出
文件夹- > HTML - >的index.html(打开Web浏览器)
。
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?
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>
Thanks in advance.....
You have to first run the tests by running the
testng.xml
asTestNG suite
.Then after that refresh the project.
Now goto the
test-output
folder-->html-->index.html (Open with Web Browser)
.
这篇关于没有得到在ReportNG TestNG的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!