2014-02-11 2 views
0
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0   
http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<modelVersion>4.0.0</modelVersion> 
<groupId>com.operations.dashboard</groupId> 
<artifactId>dashboard</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<name>DashboardAutomationProject</name> 
<description>This automates the dashboard application</description> 
<dependencies> 
    <dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>selenium-java</artifactId> 
    <version>2.39.0</version> 
    </dependency> 
    <dependency> 
    <groupId>org.testng</groupId> 
    <artifactId>testng</artifactId> 
    <version>6.8.7</version> 
    </dependency> 
    <dependency> 
    <groupId>org.uncommons</groupId> 
    <artifactId>reportng</artifactId> 
    <version>1.1.4</version> 
    </dependency> 
    <dependency> 
    <groupId>com.google.inject</groupId> 
    <artifactId>guice</artifactId> 
    <version>3.0</version> 
    </dependency> 
</dependencies> 
<build> 
    <sourceDirectory>src</sourceDirectory> 
    <plugins> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-surefire-plugin</artifactId> 
     <version>2.14.1</version> 
     <configuration> 
      <properties> 
       <property> 
       <name>usedefaultlisteners</name> 
       <value>false</value> 
       </property> 
       <property> 
       <name>listener</name> 
       <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value> 
       </property> 
      </properties> 
      <suitexmlfiles> 
       <suitexmlfile>testng.xml</suitexmlfile> 
      </suitexmlfiles> 
     </configuration> 
    </plugin> 
    <plugin> 
     <artifactId>maven-compiler-plugin</artifactId> 
     <configuration> 
      <encoding>iso-8859-1</encoding> 
      <source>1.7</source> 
      <target>1.7</target> 
     </configuration> 
    </plugin> 
    </plugins> 
</build> 
<reporting> 
    <plugins> 
    <!--TestNG-xslt related configuration.--> 
    <plugin> 
     <groupId>org.reportyng</groupId> 
     <artifactId>reporty-ng</artifactId> 
     <version>1.2</version> 
     <configuration> 
      <!--Output directory for the testng xslt report--> 
      <outputdir>/target/testng-xslt-report</outputdir> 
      <sorttestcaselinks>true</sorttestcaselinks> 
      <testdetailsfilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testdetailsfilter> 
      <showruntimetotals>true</showruntimetotals> 
     </configuration> 
    </plugin> 
    </plugins> 
</reporting> 
<pluginRepositories> 
    <pluginRepository> 
    <id>reporty-ng</id> 
    <url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url> 
    </pluginRepository> 
</pluginRepositories> 
</project> 

Привет всем,Невозможно создать отчет HTML с использованием reportNG в Maven

Я создал проект Maven для автоматизации в WebPortal и имеют выше pom.xml, где я добавил все зависимости для TestNG и ReportNG ,

Но я не могу создать отчет ReportNG. В общем случае должна быть папка HTML, созданная внутри папки тестового вывода, которая предоставляет HTML-отчет в браузере eclipse.

Может ли кто-нибудь помочь мне? Не уверен, что здесь происходит, здесь введите код

ответ

2

Надеюсь, это по-прежнему полезно. ReportNG, начиная с 1.1.4, нуждается в зависимости от com.google.inject:guice:3.0.

Смежные вопросы