2013-03-18 60 views

回答

0
<dependency> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-surefire-report-plugin</artifactId> 
    <version>2.5</version> 
    <type>maven-plugin</type> 
</dependency> <reporting> 
<plugins> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-surefire-report-plugin</artifactId> 
    <version>2.5</version> 
    <configuration> 
     <outputName>MavenSeleniumTestResults</outputName>     
    </configuration> 
    </plugin> 

</plugins> 

+0

如果我使用driver.close();在代碼中,如果我通過使用像mvn安裝命令安裝我面臨錯誤[錯誤]無法執行目標org.apache.maven.plugins:maven-surefire-plugin:2.10:測試(默認測試)項目DARTMavenSelenium:有是測試失敗。 [錯誤] [錯誤]請參閱C:\ Users \ D888977 \ workspace \ DARTMavenSelenium \ target \ surefire-reports獲取單個測試結果。 [錯誤] - > [幫助1] [錯誤] – Raju 2013-03-21 13:15:03

相關問題