没有得到在ReportNG TestNG的报告 [英] Not getting report of TestNG in ReportNG

查看:1075
本文介绍了没有得到在ReportNG TestNG的报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我执行在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/>
  < /班>
 < /试验>< /套房>

在此先感谢.....


解决方案

  1. 您必须先通过运行的testng.xml TestNG的套件运行测试


  2. 在那之后刷新项目。


  3. 现在转到这个测试输出文件夹 - > 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.....

解决方案

  1. You have to first run the tests by running the testng.xml as TestNG suite.

  2. Then after that refresh the project.

  3. Now goto the test-output folder -->html-->index.html (Open with Web Browser).

这篇关于没有得到在ReportNG TestNG的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆