2017-05-16 52 views
0

我想有失敗的測試用例快照報告時獲取生成,我可配置的ReportNG如下面的pom.xml需要Snaphot在ReportNG失敗,我怎麼能做到這一點

<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> 
         <!-- Setting ReportNG listeners --> 
         <property> 
          <name>listener</name> 
          <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value> 
         </property> 
        </properties> 
        <suiteXmlFiles> 
         <suiteXmlFile>testng.xml</suiteXmlFile> 
        </suiteXmlFiles> 
        <reportsDirectory>Reports/${timestamp}</reportsDirectory> 

       </configuration> 
      </plugin> 
      <plugin> 
+0

你的意思截圖吧? –

回答

相關問題